From 511cd09d27842cbd91fedd18f243d929c2c052fc Mon Sep 17 00:00:00 2001 From: Nikolay Borisov Date: Tue, 27 Mar 2018 10:19:29 +0300 Subject: 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 Reviewed-by: Su Yue Signed-off-by: David Sterba --- check/mode-lowmem.c | 12 +++++------- 1 file 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) -- cgit v1.2.3