Merge tag 'regmap-fix-v5.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / fs / sync.c
index c6f6f5b..1373a61 100644 (file)
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -76,7 +76,8 @@ static void sync_inodes_one_sb(struct super_block *sb, void *arg)
 
 static void sync_fs_one_sb(struct super_block *sb, void *arg)
 {
-       if (!sb_rdonly(sb) && sb->s_op->sync_fs)
+       if (!sb_rdonly(sb) && !(sb->s_iflags & SB_I_SKIP_SYNC) &&
+           sb->s_op->sync_fs)
                sb->s_op->sync_fs(sb, *(int *)arg);
 }