]> git.ipfire.org Git - people/ms/linux.git/blobdiff - fs/ubifs/super.c
enforce ->sync_fs is only called for rw superblock
[people/ms/linux.git] / fs / ubifs / super.c
index e9f7a754c4f744109236d79b6dacfbe2a4291dc3..84f3c7fd155247fb662944276d9da8f7920b50a7 100644 (file)
@@ -447,9 +447,6 @@ static int ubifs_sync_fs(struct super_block *sb, int wait)
        if (!wait)
                return 0;
 
-       if (sb->s_flags & MS_RDONLY)
-               return 0;
-
        /*
         * VFS calls '->sync_fs()' before synchronizing all dirty inodes and
         * pages, so synchronize them first, then commit the journal. Strictly