Skip to content

Commit

Permalink
nilfs2: call nilfs2_write_super from nilfs2_sync_fs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Al Viro committed Jun 12, 2009
1 parent d579ed0 commit d731e06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/nilfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d731e06

Please sign in to comment.