diff options
Diffstat (limited to 'kernel/fs/super.c')
-rw-r--r-- | kernel/fs/super.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/fs/super.c b/kernel/fs/super.c index f5f4b328f..d4d2591b7 100644 --- a/kernel/fs/super.c +++ b/kernel/fs/super.c @@ -1326,8 +1326,8 @@ int freeze_super(struct super_block *sb) } } /* - * This is just for debugging purposes so that fs can warn if it - * sees write activity when frozen is set to SB_FREEZE_COMPLETE. + * For debugging purposes so that fs can warn if it sees write activity + * when frozen is set to SB_FREEZE_COMPLETE, and for thaw_super(). */ sb->s_writers.frozen = SB_FREEZE_COMPLETE; up_write(&sb->s_umount); @@ -1346,7 +1346,7 @@ int thaw_super(struct super_block *sb) int error; down_write(&sb->s_umount); - if (sb->s_writers.frozen == SB_UNFROZEN) { + if (sb->s_writers.frozen != SB_FREEZE_COMPLETE) { up_write(&sb->s_umount); return -EINVAL; } |