diff options
| -rw-r--r-- | fs/nilfs2/super.c | 2 |
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); |
