Lines Matching refs:needed
25 int retval = 0, needed; in finish_range() local
50 needed = ext4_ext_calc_credits_for_single_extent(inode, in finish_range()
56 if (needed && ext4_handle_has_enough_credits(handle, in finish_range()
59 retval = ext4_journal_restart(handle, needed); in finish_range()
63 } else if (needed) { in finish_range()
64 retval = ext4_journal_extend(handle, needed); in finish_range()
70 retval = ext4_journal_restart(handle, needed); in finish_range()
201 int retval = 0, needed; in extend_credit_for_blkdel() local
211 needed = 3 + EXT4_MAXQUOTAS_TRANS_BLOCKS(inode->i_sb); in extend_credit_for_blkdel()
213 if (ext4_journal_extend(handle, needed) != 0) in extend_credit_for_blkdel()
214 retval = ext4_journal_restart(handle, needed); in extend_credit_for_blkdel()