mirror of
https://github.com/kdave/btrfs-progs
synced 2025-05-03 16:37:55 +00:00
btrfs-progs: check: remove unused argument from calc_extent_flag
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
9f3091ba7c
commit
d10e5b2155
@ -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
|
* 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.
|
* 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,
|
static int calc_extent_flag(struct cache_tree *extent_cache,
|
||||||
struct cache_tree *extent_cache,
|
|
||||||
struct extent_buffer *buf,
|
struct extent_buffer *buf,
|
||||||
struct root_item_record *ri,
|
struct root_item_record *ri,
|
||||||
u64 *flags)
|
u64 *flags)
|
||||||
@ -7589,7 +7588,7 @@ static int run_next_block(struct btrfs_root *root,
|
|||||||
btrfs_header_level(buf), 1, NULL,
|
btrfs_header_level(buf), 1, NULL,
|
||||||
&flags);
|
&flags);
|
||||||
if (ret < 0) {
|
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) {
|
if (ret < 0) {
|
||||||
fprintf(stderr, "Couldn't calc extent flags\n");
|
fprintf(stderr, "Couldn't calc extent flags\n");
|
||||||
flags |= BTRFS_BLOCK_FLAG_FULL_BACKREF;
|
flags |= BTRFS_BLOCK_FLAG_FULL_BACKREF;
|
||||||
@ -7597,7 +7596,7 @@ static int run_next_block(struct btrfs_root *root,
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
flags = 0;
|
flags = 0;
|
||||||
ret = calc_extent_flag(root, extent_cache, buf, ri, &flags);
|
ret = calc_extent_flag(extent_cache, buf, ri, &flags);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
fprintf(stderr, "Couldn't calc extent flags\n");
|
fprintf(stderr, "Couldn't calc extent flags\n");
|
||||||
flags |= BTRFS_BLOCK_FLAG_FULL_BACKREF;
|
flags |= BTRFS_BLOCK_FLAG_FULL_BACKREF;
|
||||||
|
Loading…
Reference in New Issue
Block a user