diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-04-06 22:01:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 11:31:19 -0400 |
commit | 458c5b0822a669d170fdb7bb16c9145f652ebe06 (patch) | |
tree | f2c53998492306a8aaf6d20ded229b69cba17348 /fs/nilfs2/segment.h | |
parent | e62687468588f47c32256e3c8c36157c40111b6e (diff) |
nilfs2: clean up sketch file
The sketch file is a file to mark checkpoints with user data. It was
experimentally introduced in the original implementation, and now
obsolete. The file was handled differently with regular files; the file
size got truncated when a checkpoint was created.
This stops the special treatment and will treat it as a regular file.
Most users are not affected because mkfs.nilfs2 no longer makes this file.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2/segment.h')
-rw-r--r-- | fs/nilfs2/segment.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/nilfs2/segment.h b/fs/nilfs2/segment.h index 2dd39da9f386..fbd162d71707 100644 --- a/fs/nilfs2/segment.h +++ b/fs/nilfs2/segment.h | |||
@@ -108,7 +108,6 @@ struct nilfs_segsum_pointer { | |||
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_flags: Internal flags | 110 | * @sc_flags: Internal flags |
111 | * @sc_sketch_inode: Inode of the sketch file | ||
112 | * @sc_state_lock: spinlock for sc_state and so on | 111 | * @sc_state_lock: spinlock for sc_state and so on |
113 | * @sc_state: Segctord state flags | 112 | * @sc_state: Segctord state flags |
114 | * @sc_flush_request: inode bitmap of metadata files to be flushed | 113 | * @sc_flush_request: inode bitmap of metadata files to be flushed |
@@ -158,13 +157,6 @@ struct nilfs_sc_info { | |||
158 | 157 | ||
159 | unsigned long sc_flags; | 158 | unsigned long sc_flags; |
160 | 159 | ||
161 | /* | ||
162 | * Pointer to an inode of the sketch. | ||
163 | * This pointer is kept only while it contains data. | ||
164 | * We protect it with a semaphore of the segment constructor. | ||
165 | */ | ||
166 | struct inode *sc_sketch_inode; | ||
167 | |||
168 | spinlock_t sc_state_lock; | 160 | spinlock_t sc_state_lock; |
169 | unsigned long sc_state; | 161 | unsigned long sc_state; |
170 | unsigned long sc_flush_request; | 162 | unsigned long sc_flush_request; |