summaryrefslogtreecommitdiffstats
path: root/kernel/fs/ext4/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/ext4/super.c')
-rw-r--r--kernel/fs/ext4/super.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/fs/ext4/super.c b/kernel/fs/ext4/super.c
index ca9d4a2fe..ca12affdb 100644
--- a/kernel/fs/ext4/super.c
+++ b/kernel/fs/ext4/super.c
@@ -807,6 +807,7 @@ static void ext4_put_super(struct super_block *sb)
dump_orphan_list(sb, sbi);
J_ASSERT(list_empty(&sbi->s_orphan));
+ sync_blockdev(sb->s_bdev);
invalidate_bdev(sb->s_bdev);
if (sbi->journal_bdev && sbi->journal_bdev != sb->s_bdev) {
/*
@@ -4943,6 +4944,9 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
set_task_ioprio(sbi->s_journal->j_task, journal_ioprio);
}
+ if (*flags & MS_LAZYTIME)
+ sb->s_flags |= MS_LAZYTIME;
+
if ((*flags & MS_RDONLY) != (sb->s_flags & MS_RDONLY)) {
if (sbi->s_mount_flags & EXT4_MF_FS_ABORTED) {
err = -EROFS;