From: Christoph Hellwig Date: Mon, 8 Jun 2009 08:08:36 +0000 (+0200) Subject: nilfs2: call nilfs2_write_super from nilfs2_sync_fs X-Git-Tag: v2.6.31-rc1~375^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d731e06323cb705003e4172ec209e469be4c18e1;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: Al Viro --- diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index 11151ea..122dc1e 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) { int err = 0; + nilfs_write_super(sb); + /* This function is called when super block should be written back */ if (wait) err = nilfs_construct_segment(sb);