aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/segment.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-08-14 01:48:32 -0400
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-10-22 20:24:35 -0400
commitb7c0634204993d7c6678c852e4bd118426599111 (patch)
tree4934238a49a56aaa072b4dea79b836439be760d8 /fs/nilfs2/segment.c
parente912a5b66837ee89fb025e67b5efeaa11930c2ce (diff)
nilfs2: move inode count and block count into root object
This moves sbi->s_inodes_count and sbi->s_blocks_count into nilfs_root object. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/segment.c')
-rw-r--r--fs/nilfs2/segment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c
index 2a6b74e6699d..b75306d642c2 100644
--- a/fs/nilfs2/segment.c
+++ b/fs/nilfs2/segment.c
@@ -856,9 +856,9 @@ static int nilfs_segctor_fill_in_checkpoint(struct nilfs_sc_info *sci)
856 raw_cp->cp_snapshot_list.ssl_next = 0; 856 raw_cp->cp_snapshot_list.ssl_next = 0;
857 raw_cp->cp_snapshot_list.ssl_prev = 0; 857 raw_cp->cp_snapshot_list.ssl_prev = 0;
858 raw_cp->cp_inodes_count = 858 raw_cp->cp_inodes_count =
859 cpu_to_le64(atomic_read(&sbi->s_inodes_count)); 859 cpu_to_le64(atomic_read(&sci->sc_root->inodes_count));
860 raw_cp->cp_blocks_count = 860 raw_cp->cp_blocks_count =
861 cpu_to_le64(atomic_read(&sbi->s_blocks_count)); 861 cpu_to_le64(atomic_read(&sci->sc_root->blocks_count));
862 raw_cp->cp_nblk_inc = 862 raw_cp->cp_nblk_inc =
863 cpu_to_le64(sci->sc_nblk_inc + sci->sc_nblk_this_inc); 863 cpu_to_le64(sci->sc_nblk_inc + sci->sc_nblk_this_inc);
864 raw_cp->cp_create = cpu_to_le64(sci->sc_seg_ctime); 864 raw_cp->cp_create = cpu_to_le64(sci->sc_seg_ctime);