From 0fc8ccb12223e8298d347dabeb534c73d15be47f Mon Sep 17 00:00:00 2001 From: "Bryant G. Duffy-Ly" Date: Wed, 3 Nov 2021 18:41:12 -0500 Subject: [PATCH] Fix exiting out of btree_walk early for force_umnt We do not want to short-circuit btree_walk early, it is better to handle the force unmount on the caller side. Therefore, remove this from btree_walk. Signed-off-by: Bryant G. Duffy-Ly --- kmod/src/btree.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kmod/src/btree.c b/kmod/src/btree.c index 90daa6ab..9807c8c5 100644 --- a/kmod/src/btree.c +++ b/kmod/src/btree.c @@ -1233,10 +1233,6 @@ static int btree_walk(struct super_block *sb, WARN_ON_ONCE((flags & (BTW_GET_PAR|BTW_SET_PAR)) && !par_root)) return -EINVAL; - /* all ops come through walk and walk calls all reads */ - if (scoutfs_forcing_unmount(sb)) - return -EIO; - scoutfs_inc_counter(sb, btree_walk); restart: