[PATCHv5 1/5] nilfs2: add nilfs_cleanup_super

2010-06-28 Thread Ryusuke Konishi
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 j...@unicus.jp Signed-off-by: Ryusuke Konishi konishi.ryus...@lab.ntt.co.jp --- fs/nilfs2/nilfs.h |1 +

[PATCHv5 0/5] nilfs2: asynchronous sb update

2010-06-28 Thread Ryusuke Konishi
This is v5 revision of the series that makes super block writeback alternately. This series is originally written by Jiro SEKIBA, and I revised it to resolve some issues and to simplify the core change by improving the patch organization. changes from v5: - fix missing endian conversion for

[PATCHv5 3/5] nilfs2: separate function that updates log position

2010-06-28 Thread Ryusuke Konishi
This moves out section that updates information of the recent log position stored in super blocks from nilfs_commit_super to a new routine named nilfs_set_log_cursor. Signed-off-by: Ryusuke Konishi konishi.ryus...@lab.ntt.co.jp --- fs/nilfs2/nilfs.h |2 ++ fs/nilfs2/super.c | 30

[PATCHv5 2/5] nilfs2: add nilfs_set_error

2010-06-28 Thread Ryusuke Konishi
This function marks error state and write it on super blocks. This is a preparation for making super block writeback alternately. Signed-off-by: Ryusuke Konishi konishi.ryus...@lab.ntt.co.jp --- fs/nilfs2/super.c | 24 ++-- 1 files changed, 14 insertions(+), 10

[PATCHv5 4/5] nilfs2: introduce nilfs_prepare_super

2010-06-28 Thread Ryusuke Konishi
From: Jiro SEKIBA j...@unicus.jp This function checks validity of super block pointers. If first super block is invalid, it will swap the super blocks. The function should be called before any super block information updates. Caller must obtain nilfs-ns_sem. Signed-off-by: Jiro SEKIBA

[PATCHv5 5/5] nilfs2: sync super blocks in turns

2010-06-28 Thread Ryusuke Konishi
From: Jiro SEKIBA j...@unicus.jp This will sync super blocks in turns instead of syncing duplicate super blocks at the time. This will help searching valid super root when super block is written into disk before log is written, which is happen when barrier-less block devices are unmounted