diff options
author | Christoph Hellwig <hch@lst.de> | 2009-06-08 04:08:54 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-11 21:36:17 -0400 |
commit | 0c95ee190e1dea60c55c834d14695341085c9b7b (patch) | |
tree | 2d0899f7aa04acc0679a760e6710c8605745ac92 /fs | |
parent | d731e06323cb705003e4172ec209e469be4c18e1 (diff) |
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: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/sync.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -33,8 +33,6 @@ static int __sync_filesystem(struct super_block *sb, int wait) | |||
33 | else | 33 | else |
34 | sync_quota_sb(sb, -1); | 34 | sync_quota_sb(sb, -1); |
35 | sync_inodes_sb(sb, wait); | 35 | sync_inodes_sb(sb, wait); |
36 | if (sb->s_dirt && sb->s_op->write_super) | ||
37 | sb->s_op->write_super(sb); | ||
38 | if (sb->s_op->sync_fs) | 36 | if (sb->s_op->sync_fs) |
39 | sb->s_op->sync_fs(sb, wait); | 37 | sb->s_op->sync_fs(sb, wait); |
40 | return __sync_blockdev(sb->s_bdev, wait); | 38 | return __sync_blockdev(sb->s_bdev, wait); |