diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-06-20 14:49:03 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 13:12:35 +0200 |
commit | f9871eddd9cb1acff770e03344a4cf12c343546f (patch) | |
tree | 4f0fadbc36979cad81bf5cb61fc79de99e1b8b6c /fs/btrfs/extent-tree.c | |
parent | btrfs: Remove unused fs_info from cleanup_extent_op (diff) | |
download | linux-f9871eddd9cb1acff770e03344a4cf12c343546f.tar.xz linux-f9871eddd9cb1acff770e03344a4cf12c343546f.zip |
btrfs: Remove fs_info from cleanup_ref_head
fs_info can be refenreced from the transaction handle, since it's always
valid. No functional changes.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/extent-tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 25a6202be4e3..9f630298ea11 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -2565,9 +2565,10 @@ static int cleanup_extent_op(struct btrfs_trans_handle *trans, } static int cleanup_ref_head(struct btrfs_trans_handle *trans, - struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_head *head) { + + struct btrfs_fs_info *fs_info = trans->fs_info; struct btrfs_delayed_ref_root *delayed_refs; int ret; @@ -2722,7 +2723,7 @@ static noinline int __btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, * up and move on to the next ref_head. */ if (!ref) { - ret = cleanup_ref_head(trans, fs_info, locked_ref); + ret = cleanup_ref_head(trans, locked_ref); if (ret > 0 ) { /* We dropped our lock, we need to loop. */ ret = 0; |