aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/the_nilfs.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-06-28 04:49:29 -0400
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-07-22 21:02:10 -0400
commit7ecaa46cfea453238a369b3019739d50ff5d7c37 (patch)
treec69911a31c3a2cd4966979de2d34764e08471f2a /fs/nilfs2/the_nilfs.c
parentbde4e696e4a527c3cc579ed77e4844d11ca17e12 (diff)
nilfs2: add nilfs_cleanup_super
This function write out filesystem state to super blocks in order to share the same cleanup work. This is a preparation for making super block writeback alternately. Cc: Jiro SEKIBA <jir@unicus.jp> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/the_nilfs.c')
-rw-r--r--fs/nilfs2/the_nilfs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/nilfs2/the_nilfs.c b/fs/nilfs2/the_nilfs.c
index 4a9e8a059638..ed58053b6f68 100644
--- a/fs/nilfs2/the_nilfs.c
+++ b/fs/nilfs2/the_nilfs.c
@@ -324,9 +324,8 @@ int load_nilfs(struct the_nilfs *nilfs, struct nilfs_sb_info *sbi)
324 goto failed_unload; 324 goto failed_unload;
325 325
326 down_write(&nilfs->ns_sem); 326 down_write(&nilfs->ns_sem);
327 nilfs->ns_mount_state |= NILFS_VALID_FS; 327 nilfs->ns_mount_state |= NILFS_VALID_FS; /* set "clean" flag */
328 nilfs->ns_sbp[0]->s_state = cpu_to_le16(nilfs->ns_mount_state); 328 err = nilfs_cleanup_super(sbi);
329 err = nilfs_commit_super(sbi, 1);
330 up_write(&nilfs->ns_sem); 329 up_write(&nilfs->ns_sem);
331 330
332 if (err) { 331 if (err) {