nilfs2: insert checkpoint number in segment summary header
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 10 Apr 2010 08:59:15 +0000 (17:59 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 10 May 2010 02:32:31 +0000 (11:32 +0900)
commit50614bcf29d0cec6df5b84c0d8331e8b8c7d72a7
tree3a91f6af1396f377a3bced903d605feb9b811b15
parent9f130263f30233a44a3175db3218dd89af143d64
nilfs2: insert checkpoint number in segment summary header

This adds a field to record the latest checkpoint number in the
nilfs_segment_summary structure.  This will help to recover the latest
checkpoint number from logs on disk.  This field is intended for
crucial cases in which super blocks have lost pointer to the latest
log.

Even though this will change the disk format, both backward and
forward compatibility is preserved by a size field prepared in the
segment summary header.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/recovery.c
fs/nilfs2/segbuf.c
fs/nilfs2/segbuf.h
fs/nilfs2/segment.c
include/linux/nilfs2_fs.h