]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3169c659d7af4c350a49fb98c850d97b7a9c9c45
tree3a91f6af1396f377a3bced903d605feb9b811b15
parent1f7aef5da22dc8cbad510b0be79722370797f397
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