diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-08-20 07:10:38 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-10-22 20:24:33 -0400 |
commit | 6c43f41000312fefa482c3bfdd97e7f81d6be0ec (patch) | |
tree | de22a81c028f33d9fc2354bfdc218191b96240cf /fs/nilfs2/segment.h | |
parent | 7d6cd92fe2de3c286b8e95f43223f09db9302635 (diff) |
nilfs2: keep zero value in i_cno except for gc-inodes
On-memory inode structures of nilfs have a member "i_cno" which stores
a checkpoint number related to the inode. For gc-inodes, this field
indicates version of data each gc-inode caches for GC. Log writer
temporarily uses "i_cno" to transfer the latest checkpoint number.
This stops the latter use and lets only gc-inodes use it.
The purpose of this patch is to allow the successive change use
"i_cno" for inode lookup.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/segment.h')
-rw-r--r-- | fs/nilfs2/segment.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nilfs2/segment.h b/fs/nilfs2/segment.h index 17c487bd8152..675d932148a4 100644 --- a/fs/nilfs2/segment.h +++ b/fs/nilfs2/segment.h | |||
@@ -107,6 +107,7 @@ struct nilfs_segsum_pointer { | |||
107 | * @sc_datablk_cnt: Data block count of a file | 107 | * @sc_datablk_cnt: Data block count of a file |
108 | * @sc_nblk_this_inc: Number of blocks included in the current logical segment | 108 | * @sc_nblk_this_inc: Number of blocks included in the current logical segment |
109 | * @sc_seg_ctime: Creation time | 109 | * @sc_seg_ctime: Creation time |
110 | * @sc_cno: checkpoint number of current log | ||
110 | * @sc_flags: Internal flags | 111 | * @sc_flags: Internal flags |
111 | * @sc_state_lock: spinlock for sc_state and so on | 112 | * @sc_state_lock: spinlock for sc_state and so on |
112 | * @sc_state: Segctord state flags | 113 | * @sc_state: Segctord state flags |
@@ -156,7 +157,7 @@ struct nilfs_sc_info { | |||
156 | unsigned long sc_datablk_cnt; | 157 | unsigned long sc_datablk_cnt; |
157 | unsigned long sc_nblk_this_inc; | 158 | unsigned long sc_nblk_this_inc; |
158 | time_t sc_seg_ctime; | 159 | time_t sc_seg_ctime; |
159 | 160 | __u64 sc_cno; | |
160 | unsigned long sc_flags; | 161 | unsigned long sc_flags; |
161 | 162 | ||
162 | spinlock_t sc_state_lock; | 163 | spinlock_t sc_state_lock; |