aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2009-06-08 04:08:36 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2009-06-11 21:36:17 -0400
commitd731e06323cb705003e4172ec209e469be4c18e1 (patch)
tree636b1b2f7aaea08fa7be27b3d908fe6dbe6ec70b /fs
parentd579ed00aa96a7f7486978540a0d7cecaff742ae (diff)
nilfs2: call nilfs2_write_super from nilfs2_sync_fs
The call to ->write_super from __sync_filesystem will go away, so make sure nilfs2 performs the same actions from inside ->sync_fs. 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/nilfs2/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c
index 11151eaa2c4a..122dc1e489fb 100644
--- a/fs/nilfs2/super.c
+++ b/fs/nilfs2/super.c
@@ -391,6 +391,8 @@ static int nilfs_sync_fs(struct super_block *sb, int wait)
391{ 391{
392 int err = 0; 392 int err = 0;
393 393
394 nilfs_write_super(sb);
395
394 /* This function is called when super block should be written back */ 396 /* This function is called when super block should be written back */
395 if (wait) 397 if (wait)
396 err = nilfs_construct_segment(sb); 398 err = nilfs_construct_segment(sb);