diff options
author | David Sterba <dsterba@suse.com> | 2017-02-09 17:42:02 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-03-08 13:00:48 +0100 |
commit | d10e5b2155c9a705a1bb46cf40141a90bc7d9df2 (patch) | |
tree | c3aed772e68fb62c6b1de62d4dd74782e5d36ead | |
parent | 9f3091ba7ccf3cbbab2d69f422f29f166f022ad9 (diff) |
btrfs-progs: check: remove unused argument from calc_extent_flag
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | cmds-check.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmds-check.c b/cmds-check.c index 688f3b6d..bc90334b 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -7394,8 +7394,7 @@ static int is_dropped_key(struct btrfs_key *key, * assumption and simply indicate that we _think_ that the FULL BACKREF needs to * be set or not and then we can check later once we've gathered all the refs. */ -static int calc_extent_flag(struct btrfs_root *root, - struct cache_tree *extent_cache, +static int calc_extent_flag(struct cache_tree *extent_cache, struct extent_buffer *buf, struct root_item_record *ri, u64 *flags) @@ -7589,7 +7588,7 @@ static int run_next_block(struct btrfs_root *root, btrfs_header_level(buf), 1, NULL, &flags); if (ret < 0) { - ret = calc_extent_flag(root, extent_cache, buf, ri, &flags); + ret = calc_extent_flag(extent_cache, buf, ri, &flags); if (ret < 0) { fprintf(stderr, "Couldn't calc extent flags\n"); flags |= BTRFS_BLOCK_FLAG_FULL_BACKREF; @@ -7597,7 +7596,7 @@ static int run_next_block(struct btrfs_root *root, } } else { flags = 0; - ret = calc_extent_flag(root, extent_cache, buf, ri, &flags); + ret = calc_extent_flag(extent_cache, buf, ri, &flags); if (ret < 0) { fprintf(stderr, "Couldn't calc extent flags\n"); flags |= BTRFS_BLOCK_FLAG_FULL_BACKREF; |