diff options
-rw-r--r-- | fs/affs/super.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c index 12b4f58081b4..c837e43687a6 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
@@ -545,10 +545,9 @@ affs_remount(struct super_block *sb, int *flags, char *data) | |||
545 | if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) | 545 | if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) |
546 | return 0; | 546 | return 0; |
547 | 547 | ||
548 | if (*flags & MS_RDONLY) { | 548 | if (*flags & MS_RDONLY) |
549 | affs_write_super(sb); | ||
550 | affs_free_bitmap(sb); | 549 | affs_free_bitmap(sb); |
551 | } else | 550 | else |
552 | res = affs_init_bitmap(sb, flags); | 551 | res = affs_init_bitmap(sb, flags); |
553 | 552 | ||
554 | return res; | 553 | return res; |