Above we call super_lock_excl() which waits until the superblock is SB_BORN and since SB_BORN is never unset once set this check can never fire. Plus, we also hold an active reference at this point already so this superblock can't even be shutdown. Signed-off-by: Christian Brauner <brauner@xxxxxxxxxx> --- fs/super.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fs/super.c b/fs/super.c index 176c55abd9de..2d32e60daef7 100644 --- a/fs/super.c +++ b/fs/super.c @@ -1993,11 +1993,6 @@ int freeze_super(struct super_block *sb, enum freeze_holder who) goto retry; } - if (!(sb->s_flags & SB_BORN)) { - super_unlock_excl(sb); - return 0; /* sic - it's "nothing to do" */ - } - if (sb_rdonly(sb)) { /* Nothing to do really... */ sb->s_writers.freeze_holders |= who; -- 2.34.1