mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
super: don't bother with WARN_ON_ONCE()
We hold our own active reference and we've checked it above. Link: https://lore.kernel.org/r/20231127-vfs-super-massage-wait-v1-2-9ab277bfd01a@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
b30850c58b
commit
63513f8574
@ -2067,10 +2067,7 @@ int freeze_super(struct super_block *sb, enum freeze_holder who)
|
||||
/* Release s_umount to preserve sb_start_write -> s_umount ordering */
|
||||
super_unlock_excl(sb);
|
||||
sb_wait_write(sb, SB_FREEZE_WRITE);
|
||||
if (!super_lock_excl(sb)) {
|
||||
WARN_ON_ONCE("Dying superblock while freezing!");
|
||||
return -EINVAL;
|
||||
}
|
||||
__super_lock_excl(sb);
|
||||
|
||||
/* Now we go and block page faults... */
|
||||
sb->s_writers.frozen = SB_FREEZE_PAGEFAULT;
|
||||
|
Loading…
Reference in New Issue
Block a user