]> git.karo-electronics.de Git - linux-beck.git/commit
nilfs2: introduce nilfs_prepare_super
authorJiro SEKIBA <jir@unicus.jp>
Mon, 28 Jun 2010 08:49:32 +0000 (17:49 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 23 Jul 2010 01:02:10 +0000 (10:02 +0900)
commitd26493b6f017c0b0063a15bf893411ddae85eee4
tree994de3e7c0383f0e30e5e9c88c0c5d0261a834bc
parent60f46b7efc1d6b980511c2644cb89903062f6e98
nilfs2: introduce nilfs_prepare_super

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 <jir@unicus.jp>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/nilfs.h
fs/nilfs2/segment.c
fs/nilfs2/super.c