]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nilfs2: fix false warning saying one of two super blocks is broken
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 15 Aug 2010 11:16:11 +0000 (20:16 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 16 Aug 2010 02:08:36 +0000 (11:08 +0900)
commitea1a16f7168ac19d974ac51b47593b92280e7992
treee16e89f6f8f3a440476bba74a1c28d2f5bc0f5f4
parentaf4e36318edb848fcc0a8d5f75000ca00cdc7595
nilfs2: fix false warning saying one of two super blocks is broken

After applying commit b2ac86e1, the following message got appeared
after unclean shutdown:

> NILFS warning: broken superblock. using spare superblock.

This turns out to be a false message due to the change which updates
two super blocks alternately.  The secondary super block now can be
selected if it's newer than the primary one.

This kills the false warning by suppressing it if another super block
is not actually broken.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/the_nilfs.c