Lines Matching refs:retval
32 int retval = 0, needed; in finish_range() local
45 retval = PTR_ERR(path); in finish_range()
64 retval = ext4_journal_restart(handle, needed); in finish_range()
65 if (retval) in finish_range()
68 retval = ext4_journal_extend(handle, needed); in finish_range()
69 if (retval) { in finish_range()
73 retval = ext4_journal_restart(handle, needed); in finish_range()
74 if (retval) in finish_range()
78 retval = ext4_ext_insert_extent(handle, inode, path, &newext); in finish_range()
85 return retval; in finish_range()
92 int retval; in update_extent_range() local
106 retval = finish_range(handle, inode, lb); in update_extent_range()
110 return retval; in update_extent_range()
119 int i, retval = 0; in update_ind_extent_range() local
136 retval = update_extent_range(handle, inode, in update_ind_extent_range()
139 if (retval) in update_ind_extent_range()
147 return retval; in update_ind_extent_range()
157 int i, retval = 0; in update_dind_extent_range() local
173 retval = update_ind_extent_range(handle, inode, in update_dind_extent_range()
176 if (retval) in update_dind_extent_range()
187 return retval; in update_dind_extent_range()
197 int i, retval = 0; in update_tind_extent_range() local
213 retval = update_dind_extent_range(handle, inode, in update_tind_extent_range()
216 if (retval) in update_tind_extent_range()
225 return retval; in update_tind_extent_range()
231 int retval = 0, needed; in extend_credit_for_blkdel() local
244 retval = ext4_journal_restart(handle, needed); in extend_credit_for_blkdel()
246 return retval; in extend_credit_for_blkdel()
278 int i, retval = 0; in free_tind_blocks() local
290 retval = free_dind_blocks(handle, in free_tind_blocks()
292 if (retval) { in free_tind_blocks()
294 return retval; in free_tind_blocks()
306 int retval; in free_ind_block() local
317 retval = free_dind_blocks(handle, inode, i_data[1]); in free_ind_block()
318 if (retval) in free_ind_block()
319 return retval; in free_ind_block()
324 retval = free_tind_blocks(handle, inode, i_data[2]); in free_ind_block()
325 if (retval) in free_ind_block()
326 return retval; in free_ind_block()
334 int retval; in ext4_ext_swap_inode_data() local
343 retval = ext4_journal_extend(handle, 1); in ext4_ext_swap_inode_data()
344 if (retval) { in ext4_ext_swap_inode_data()
345 retval = ext4_journal_restart(handle, 1); in ext4_ext_swap_inode_data()
346 if (retval) in ext4_ext_swap_inode_data()
361 retval = -EAGAIN; in ext4_ext_swap_inode_data()
392 retval = free_ind_block(handle, inode, i_data); in ext4_ext_swap_inode_data()
396 return retval; in ext4_ext_swap_inode_data()
402 int i, retval = 0; in free_ext_idx() local
416 retval = free_ext_idx(handle, inode, ix); in free_ext_idx()
417 if (retval) in free_ext_idx()
424 return retval; in free_ext_idx()
432 int i, retval = 0; in free_ext_block() local
443 retval = free_ext_idx(handle, inode, ix); in free_ext_block()
444 if (retval) in free_ext_block()
445 return retval; in free_ext_block()
447 return retval; in free_ext_block()
454 int retval = 0, i; in ext4_ext_migrate() local
475 return retval; in ext4_ext_migrate()
483 retval = PTR_ERR(handle); in ext4_ext_migrate()
484 return retval; in ext4_ext_migrate()
490 retval = -ENOMEM; in ext4_ext_migrate()
492 return retval; in ext4_ext_migrate()
538 retval = update_extent_range(handle, tmp_inode, in ext4_ext_migrate()
541 if (retval) in ext4_ext_migrate()
546 retval = update_ind_extent_range(handle, tmp_inode, in ext4_ext_migrate()
549 if (retval) in ext4_ext_migrate()
554 retval = update_dind_extent_range(handle, tmp_inode, in ext4_ext_migrate()
557 if (retval) in ext4_ext_migrate()
562 retval = update_tind_extent_range(handle, tmp_inode, in ext4_ext_migrate()
565 if (retval) in ext4_ext_migrate()
571 retval = finish_range(handle, tmp_inode, &lb); in ext4_ext_migrate()
573 if (retval) in ext4_ext_migrate()
580 retval = ext4_ext_swap_inode_data(handle, inode, tmp_inode); in ext4_ext_migrate()
581 if (retval) in ext4_ext_migrate()
622 return retval; in ext4_ext_migrate()