diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-04-10 04:59:15 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-05-09 22:32:31 -0400 |
commit | 50614bcf29d0cec6df5b84c0d8331e8b8c7d72a7 (patch) | |
tree | 3a91f6af1396f377a3bced903d605feb9b811b15 /include | |
parent | 9f130263f30233a44a3175db3218dd89af143d64 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nilfs2_fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nilfs2_fs.h b/include/linux/nilfs2_fs.h index f960e1d264e8..6505c00f1fc1 100644 --- a/include/linux/nilfs2_fs.h +++ b/include/linux/nilfs2_fs.h | |||
@@ -377,6 +377,7 @@ union nilfs_binfo { | |||
377 | * @ss_nfinfo: number of finfo structures | 377 | * @ss_nfinfo: number of finfo structures |
378 | * @ss_sumbytes: total size of segment summary in bytes | 378 | * @ss_sumbytes: total size of segment summary in bytes |
379 | * @ss_pad: padding | 379 | * @ss_pad: padding |
380 | * @ss_cno: checkpoint number | ||
380 | */ | 381 | */ |
381 | struct nilfs_segment_summary { | 382 | struct nilfs_segment_summary { |
382 | __le32 ss_datasum; | 383 | __le32 ss_datasum; |
@@ -391,6 +392,7 @@ struct nilfs_segment_summary { | |||
391 | __le32 ss_nfinfo; | 392 | __le32 ss_nfinfo; |
392 | __le32 ss_sumbytes; | 393 | __le32 ss_sumbytes; |
393 | __le32 ss_pad; | 394 | __le32 ss_pad; |
395 | __le64 ss_cno; | ||
394 | /* array of finfo structures */ | 396 | /* array of finfo structures */ |
395 | }; | 397 | }; |
396 | 398 | ||