nilfs2: fix disorder of nilfs_write_super in nilfs_sync_fs
authorJiro SEKIBA <jir@unicus.jp>
Wed, 22 Jul 2009 16:26:33 +0000 (01:26 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 14 Sep 2009 09:27:14 +0000 (18:27 +0900)
commit6233caa9d5b153c2190d6c1c35c1dd1010104fc1
tree885fdeacf10bbbecebf94fc274bfd84ff28066f6
parentec5d66abdb0caf8b753a138568f20770a3d64c8c
nilfs2: fix disorder of nilfs_write_super in nilfs_sync_fs

This fixes disorder of nilfs_write_super in nilfs_sync_fs.  Commiting
super block must be the end of the function so that every changes are
reflected.

->sync_fs() is not called frequently so this makes nilfs_sync_fs call
nilfs_commit_super instead of nilfs_write_super.

Signed-off-by: Jiro SEKIBA <jir@unicus.jp>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/super.c