diff options
| -rw-r--r-- | fs/ext4/super.c | 2 | ||||
| -rw-r--r-- | fs/f2fs/super.c | 2 | ||||
| -rw-r--r-- | fs/udf/super.c | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index d8638e4e2..dafe63785 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -4850,6 +4850,8 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data) #endif char *orig_data = kstrdup(data, GFP_KERNEL); + sync_filesystem(sb); + /* Store the original options */ old_sb_flags = sb->s_flags; old_opts.s_mount_opt = sbi->s_mount_opt; diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index fbfa68b72..2bc2f0aa3 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1084,6 +1084,8 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data) struct f2fs_fault_info ffi = sbi->fault_info; #endif + sync_filesystem(sb); + /* * Save the old mount options in case we * need to restore them. diff --git a/fs/udf/super.c b/fs/udf/super.c index 3ea63ca1a..2512677a3 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -629,6 +629,7 @@ static int udf_remount_fs(struct super_block *sb, int *flags, char *options) struct udf_options uopt; struct udf_sb_info *sbi = UDF_SB(sb); int error = 0; + sync_filesystem(sb); sync_filesystem(sb); if (lvidiu) { |
