nilfs2: stop using periodic write_super callback
authorJiro SEKIBA <jir@unicus.jp>
Wed, 22 Jul 2009 16:33:49 +0000 (01:33 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 14 Sep 2009 09:27:14 +0000 (18:27 +0900)
commit1dfa27105a6cf4171c439fd40a004a0a17838115
tree7d348398a9e623324ca86eafd050b8c12abf3cea
parent79efdd94111f30c373fce05e4e5822d8ff671c2a
nilfs2: stop using periodic write_super callback

This removes nilfs_write_super and commit super block in nilfs
internal thread, instead of periodic write_super callback.

VFS layer calls ->write_super callback periodically.  However,
it looks like that calling back is ommited when disk I/O is busy.
And when cleanerd (nilfs GC) is runnig, disk I/O tend to be busy thus
nilfs superblock is not synchronized as nilfs designed.

To avoid it, syncing superblock by nilfs thread instead of pdflush.

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