aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/segbuf.h
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-03-22 12:50:38 -0400
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-05-09 22:32:30 -0400
commitaaed1d5bfac459ead9aaad324e7fe3326250f50a (patch)
tree389f305354db9a45a482ff38e5f0ffab030c76bd /fs/nilfs2/segbuf.h
parent1e2b68bf285dce604388fcb6f85b7e612156db17 (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.h3
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 *);
139int nilfs_segbuf_extend_payload(struct nilfs_segment_buffer *, 139int nilfs_segbuf_extend_payload(struct nilfs_segment_buffer *,
140 struct buffer_head **); 140 struct buffer_head **);
141void nilfs_segbuf_fill_in_segsum(struct nilfs_segment_buffer *); 141void nilfs_segbuf_fill_in_segsum(struct nilfs_segment_buffer *);
142void nilfs_segbuf_fill_in_segsum_crc(struct nilfs_segment_buffer *, u32);
143void nilfs_segbuf_fill_in_data_crc(struct nilfs_segment_buffer *, u32);
144 142
145static inline void 143static inline void
146nilfs_segbuf_add_segsum_buffer(struct nilfs_segment_buffer *segbuf, 144nilfs_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);
174int nilfs_write_logs(struct list_head *logs, struct the_nilfs *nilfs); 172int nilfs_write_logs(struct list_head *logs, struct the_nilfs *nilfs);
175int nilfs_wait_on_logs(struct list_head *logs); 173int nilfs_wait_on_logs(struct list_head *logs);
174void nilfs_add_checksums_on_logs(struct list_head *logs, u32 seed);
176 175
177static inline void nilfs_destroy_logs(struct list_head *logs) 176static inline void nilfs_destroy_logs(struct list_head *logs)
178{ 177{