Lines Matching refs:retval
25 int retval = 0, needed; in finish_range() local
39 retval = PTR_ERR(path); in finish_range()
53 retval = ext4_datasem_ensure_credits(handle, inode, needed, needed, 0); in finish_range()
54 if (retval < 0) in finish_range()
56 retval = ext4_ext_insert_extent(handle, inode, &path, &newext, 0); in finish_range()
62 return retval; in finish_range()
68 int retval; in update_extent_range() local
83 retval = finish_range(handle, inode, lb); in update_extent_range()
87 return retval; in update_extent_range()
96 int i, retval = 0; in update_ind_extent_range() local
106 retval = update_extent_range(handle, inode, in update_ind_extent_range()
108 if (retval) in update_ind_extent_range()
115 return retval; in update_ind_extent_range()
125 int i, retval = 0; in update_dind_extent_range() local
135 retval = update_ind_extent_range(handle, inode, in update_dind_extent_range()
137 if (retval) in update_dind_extent_range()
145 return retval; in update_dind_extent_range()
155 int i, retval = 0; in update_tind_extent_range() local
165 retval = update_dind_extent_range(handle, inode, in update_tind_extent_range()
167 if (retval) in update_tind_extent_range()
175 return retval; in update_tind_extent_range()
223 int i, retval = 0; in free_tind_blocks() local
235 retval = free_dind_blocks(handle, in free_tind_blocks()
237 if (retval) { in free_tind_blocks()
239 return retval; in free_tind_blocks()
244 retval = ext4_journal_ensure_credits(handle, EXT4_RESERVE_TRANS_BLOCKS, in free_tind_blocks()
246 if (retval < 0) in free_tind_blocks()
247 return retval; in free_tind_blocks()
256 int retval; in free_ind_block() local
260 retval = ext4_journal_ensure_credits(handle, in free_ind_block()
263 if (retval < 0) in free_ind_block()
264 return retval; in free_ind_block()
273 retval = free_dind_blocks(handle, inode, i_data[1]); in free_ind_block()
274 if (retval) in free_ind_block()
275 return retval; in free_ind_block()
280 retval = free_tind_blocks(handle, inode, i_data[2]); in free_ind_block()
281 if (retval) in free_ind_block()
282 return retval; in free_ind_block()
290 int retval, retval2 = 0; in ext4_ext_swap_inode_data() local
299 retval = ext4_journal_ensure_credits(handle, 1, 0); in ext4_ext_swap_inode_data()
300 if (retval < 0) in ext4_ext_swap_inode_data()
314 retval = -EAGAIN; in ext4_ext_swap_inode_data()
344 retval = free_ind_block(handle, inode, i_data); in ext4_ext_swap_inode_data()
346 if (unlikely(retval2 && !retval)) in ext4_ext_swap_inode_data()
347 retval = retval2; in ext4_ext_swap_inode_data()
350 return retval; in ext4_ext_swap_inode_data()
356 int i, retval = 0; in free_ext_idx() local
370 retval = free_ext_idx(handle, inode, ix); in free_ext_idx()
371 if (retval) { in free_ext_idx()
373 return retval; in free_ext_idx()
378 retval = ext4_journal_ensure_credits(handle, EXT4_RESERVE_TRANS_BLOCKS, in free_ext_idx()
380 if (retval < 0) in free_ext_idx()
381 return retval; in free_ext_idx()
392 int i, retval = 0; in free_ext_block() local
403 retval = free_ext_idx(handle, inode, ix); in free_ext_block()
404 if (retval) in free_ext_block()
405 return retval; in free_ext_block()
407 return retval; in free_ext_block()
414 int retval = 0, i; in ext4_ext_migrate() local
435 return retval; in ext4_ext_migrate()
448 retval = PTR_ERR(handle); in ext4_ext_migrate()
458 retval = PTR_ERR(tmp_inode); in ext4_ext_migrate()
501 retval = PTR_ERR(handle); in ext4_ext_migrate()
513 retval = update_extent_range(handle, tmp_inode, in ext4_ext_migrate()
515 if (retval) in ext4_ext_migrate()
521 retval = update_ind_extent_range(handle, tmp_inode, in ext4_ext_migrate()
523 if (retval) in ext4_ext_migrate()
528 retval = update_dind_extent_range(handle, tmp_inode, in ext4_ext_migrate()
530 if (retval) in ext4_ext_migrate()
535 retval = update_tind_extent_range(handle, tmp_inode, in ext4_ext_migrate()
537 if (retval) in ext4_ext_migrate()
543 retval = finish_range(handle, tmp_inode, &lb); in ext4_ext_migrate()
545 if (retval) in ext4_ext_migrate()
552 retval = ext4_ext_swap_inode_data(handle, inode, tmp_inode); in ext4_ext_migrate()
553 if (retval) in ext4_ext_migrate()
562 retval = ext4_journal_ensure_credits(handle, 1, 0); in ext4_ext_migrate()
563 if (retval < 0) in ext4_ext_migrate()
589 return retval; in ext4_ext_migrate()