diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-05-28 09:36:48 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-06-07 16:37:37 +0200 |
commit | 2d99e810d97f7d818c9b5e2b76a9eeb7555b6138 (patch) | |
tree | 842efc239b7ff583ed4b48264a5124be64ba31c0 /ctree.c | |
parent | a22b593587c2c3e4d3b07cedcde5996461f19a06 (diff) |
btrfs-progs: Remove root argument from btrfs_set_block_flags
It's used only to get a reference to fs_info, which can be obtained from
the transaction handle.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'ctree.c')
-rw-r--r-- | ctree.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -236,7 +236,7 @@ static noinline int update_ref_for_cow(struct btrfs_trans_handle *trans, BUG_ON(ret); } if (new_flags != 0) { - ret = btrfs_set_block_flags(trans, root, buf->start, + ret = btrfs_set_block_flags(trans, buf->start, btrfs_header_level(buf), new_flags); BUG_ON(ret); |