diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-03-22 12:50:38 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-05-09 22:32:30 -0400 |
commit | aaed1d5bfac459ead9aaad324e7fe3326250f50a (patch) | |
tree | 389f305354db9a45a482ff38e5f0ffab030c76bd /fs/nilfs2/segbuf.h | |
parent | 1e2b68bf285dce604388fcb6f85b7e612156db17 (diff) |
nilfs2: move out checksum routines to segment buffer code
This moves out checksum routines in log writer to segbuf.c for
cleanup.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/segbuf.h')
-rw-r--r-- | fs/nilfs2/segbuf.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nilfs2/segbuf.h b/fs/nilfs2/segbuf.h index a1a0af6119ea..ae12c2c3e370 100644 --- a/fs/nilfs2/segbuf.h +++ b/fs/nilfs2/segbuf.h | |||
@@ -139,8 +139,6 @@ int nilfs_segbuf_extend_segsum(struct nilfs_segment_buffer *); | |||
139 | int nilfs_segbuf_extend_payload(struct nilfs_segment_buffer *, | 139 | int nilfs_segbuf_extend_payload(struct nilfs_segment_buffer *, |
140 | struct buffer_head **); | 140 | struct buffer_head **); |
141 | void nilfs_segbuf_fill_in_segsum(struct nilfs_segment_buffer *); | 141 | void nilfs_segbuf_fill_in_segsum(struct nilfs_segment_buffer *); |
142 | void nilfs_segbuf_fill_in_segsum_crc(struct nilfs_segment_buffer *, u32); | ||
143 | void nilfs_segbuf_fill_in_data_crc(struct nilfs_segment_buffer *, u32); | ||
144 | 142 | ||
145 | static inline void | 143 | static inline void |
146 | nilfs_segbuf_add_segsum_buffer(struct nilfs_segment_buffer *segbuf, | 144 | nilfs_segbuf_add_segsum_buffer(struct nilfs_segment_buffer *segbuf, |
@@ -173,6 +171,7 @@ void nilfs_truncate_logs(struct list_head *logs, | |||
173 | struct nilfs_segment_buffer *last); | 171 | struct nilfs_segment_buffer *last); |
174 | int nilfs_write_logs(struct list_head *logs, struct the_nilfs *nilfs); | 172 | int nilfs_write_logs(struct list_head *logs, struct the_nilfs *nilfs); |
175 | int nilfs_wait_on_logs(struct list_head *logs); | 173 | int nilfs_wait_on_logs(struct list_head *logs); |
174 | void nilfs_add_checksums_on_logs(struct list_head *logs, u32 seed); | ||
176 | 175 | ||
177 | static inline void nilfs_destroy_logs(struct list_head *logs) | 176 | static inline void nilfs_destroy_logs(struct list_head *logs) |
178 | { | 177 | { |