Commit 0c95ee19 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro
Browse files

remove the call to ->write_super in __sync_filesystem

Now that all filesystems provide ->sync_fs methods we can change
__sync_filesystem to only call ->sync_fs.

This gives us a clear separation between periodic writeouts which
are driven by ->write_super and data integrity syncs that go
through ->sync_fs. (modulo file_fsync which is also going away)
Signed-off-by: default avatarChristoph Hellwig <>
Signed-off-by: default avatarAl Viro <>
parent d731e063
......@@ -33,8 +33,6 @@ static int __sync_filesystem(struct super_block *sb, int wait)
sync_quota_sb(sb, -1);
sync_inodes_sb(sb, wait);
if (sb->s_dirt && sb->s_op->write_super)
if (sb->s_op->sync_fs)
sb->s_op->sync_fs(sb, wait);
return __sync_blockdev(sb->s_bdev, wait);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment