diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-03-27 10:19:29 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-06-07 16:37:34 +0200 |
commit | 511cd09d27842cbd91fedd18f243d929c2c052fc (patch) | |
tree | 038df7cabe482a0018c1303ccc75b274af4365d2 /check/mode-lowmem.c | |
parent | d01839e95a838f9f8ada86b638f7b19462dedf33 (diff) |
btrfs-progs: check: Drop ext_ref param from check_fs_first_inode
It's no longer used in that function so can be dropped altogether.
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 'check/mode-lowmem.c')
-rw-r--r-- | check/mode-lowmem.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/check/mode-lowmem.c b/check/mode-lowmem.c index e9c1b239..1c50b3e9 100644 --- a/check/mode-lowmem.c +++ b/check/mode-lowmem.c @@ -4659,15 +4659,13 @@ out: * blocks and integrity of fs tree items. * * @root: the root of the tree to be checked. - * @ext_ref feature EXTENDED_IREF is enable or not. * @account if NOT 0 means check the tree (including tree)'s treeblocks. * otherwise means check fs tree(s) items relationship and * @root MUST be a fs tree root. * Returns 0 represents OK. * Returns >0 represents error bits. */ -static int check_btrfs_root(struct btrfs_root *root, unsigned int ext_ref, - int check_all) +static int check_btrfs_root(struct btrfs_root *root, int check_all) { struct btrfs_path path; struct node_refs nrefs; @@ -4746,7 +4744,7 @@ out: static int check_fs_root(struct btrfs_root *root, unsigned int ext_ref) { reset_cached_block_groups(root->fs_info); - return check_btrfs_root(root, ext_ref, 0); + return check_btrfs_root(root, 0); } /* @@ -4941,11 +4939,11 @@ int check_chunks_and_extents_lowmem(struct btrfs_fs_info *fs_info) root = fs_info->fs_root; root1 = root->fs_info->chunk_root; - ret = check_btrfs_root(root1, 0, 1); + ret = check_btrfs_root(root1, 1); err |= ret; root1 = root->fs_info->tree_root; - ret = check_btrfs_root(root1, 0, 1); + ret = check_btrfs_root(root1, 1); err |= ret; btrfs_init_path(&path); @@ -4976,7 +4974,7 @@ int check_chunks_and_extents_lowmem(struct btrfs_fs_info *fs_info) goto next; } - ret = check_btrfs_root(cur_root, 0, 1); + ret = check_btrfs_root(cur_root, 1); err |= ret; if (key.objectid == BTRFS_TREE_RELOC_OBJECTID) |