diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2018-10-11 07:40:35 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-10-15 17:23:41 +0200 |
commit | af9b8a0e2085fc90dca85acd85ee83ece7c05130 (patch) | |
tree | b581f8d45652eb3639d7e8a7396897db2d638b6f /fs/btrfs/transaction.c | |
parent | btrfs: delayed-ref: pass delayed_refs directly to btrfs_delayed_ref_lock (diff) | |
download | linux-af9b8a0e2085fc90dca85acd85ee83ece7c05130.tar.xz linux-af9b8a0e2085fc90dca85acd85ee83ece7c05130.zip |
btrfs: remove fs_info from btrfs_check_space_for_delayed_refs
It can be referenced from the transaction handle.
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index e7f618b17b07..c5015458c5c8 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -760,7 +760,7 @@ static int should_end_transaction(struct btrfs_trans_handle *trans) { struct btrfs_fs_info *fs_info = trans->fs_info; - if (btrfs_check_space_for_delayed_refs(trans, fs_info)) + if (btrfs_check_space_for_delayed_refs(trans)) return 1; return !!btrfs_block_rsv_check(&fs_info->global_block_rsv, 5); |