Now that do_emergency_remount() takes s_umount itself in its callback nothing iterates with SUPER_ITER_EXCL anymore. Remove it and take s_umount shared in __iterate_supers(). No functional changes. Signed-off-by: Christian Brauner (Amutable) --- fs/super.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fs/super.c b/fs/super.c index edd5648d1720..657958a1d135 100644 --- a/fs/super.c +++ b/fs/super.c @@ -935,9 +935,8 @@ void drop_super_exclusive(struct super_block *sb) } enum super_iter_flags_t { - SUPER_ITER_EXCL = (1U << 0), - SUPER_ITER_UNLOCKED = (1U << 1), - SUPER_ITER_REVERSE = (1U << 2), + SUPER_ITER_UNLOCKED = (1U << 0), + SUPER_ITER_REVERSE = (1U << 1), }; static inline struct super_block *first_super(enum super_iter_flags_t flags) @@ -959,7 +958,6 @@ static void __iterate_supers(void (*f)(struct super_block *, void *), void *arg, enum super_iter_flags_t flags) { struct super_block *sb, *p = NULL; - bool excl = flags & SUPER_ITER_EXCL; spin_lock(&sb_lock); @@ -976,9 +974,9 @@ static void __iterate_supers(void (*f)(struct super_block *, void *), void *arg, if (flags & SUPER_ITER_UNLOCKED) { f(sb, arg); - } else if (super_lock(sb, excl)) { + } else if (super_lock_shared(sb)) { f(sb, arg); - super_unlock(sb, excl); + super_unlock_shared(sb); } if (p) -- 2.53.0