aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/segbuf.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-03-22 12:15:31 -0400
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-05-09 22:32:30 -0400
commit1e2b68bf285dce604388fcb6f85b7e612156db17 (patch)
tree5cf59247e8171edceb77a521fd2cdf865f0ec9d2 /fs/nilfs2/segbuf.c
parent277a6a34175dcb0ee98dceee619e0e3190347a25 (diff)
nilfs2: move pointer to super root block into logs
This moves a pointer to buffer storing super root block to each log buffer from nilfs_sc_info struct for simplicity. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/segbuf.c')
-rw-r--r--fs/nilfs2/segbuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c
index 17851f77f739..a24ca9cc6afb 100644
--- a/fs/nilfs2/segbuf.c
+++ b/fs/nilfs2/segbuf.c
@@ -81,6 +81,7 @@ struct nilfs_segment_buffer *nilfs_segbuf_new(struct super_block *sb)
81 INIT_LIST_HEAD(&segbuf->sb_list); 81 INIT_LIST_HEAD(&segbuf->sb_list);
82 INIT_LIST_HEAD(&segbuf->sb_segsum_buffers); 82 INIT_LIST_HEAD(&segbuf->sb_segsum_buffers);
83 INIT_LIST_HEAD(&segbuf->sb_payload_buffers); 83 INIT_LIST_HEAD(&segbuf->sb_payload_buffers);
84 segbuf->sb_super_root = NULL;
84 85
85 init_completion(&segbuf->sb_bio_event); 86 init_completion(&segbuf->sb_bio_event);
86 atomic_set(&segbuf->sb_err, 0); 87 atomic_set(&segbuf->sb_err, 0);
@@ -282,6 +283,7 @@ static void nilfs_segbuf_clear(struct nilfs_segment_buffer *segbuf)
282{ 283{
283 nilfs_release_buffers(&segbuf->sb_segsum_buffers); 284 nilfs_release_buffers(&segbuf->sb_segsum_buffers);
284 nilfs_release_buffers(&segbuf->sb_payload_buffers); 285 nilfs_release_buffers(&segbuf->sb_payload_buffers);
286 segbuf->sb_super_root = NULL;
285} 287}
286 288
287/* 289/*