diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-08-14 01:48:32 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-10-22 20:24:35 -0400 |
commit | b7c0634204993d7c6678c852e4bd118426599111 (patch) | |
tree | 4934238a49a56aaa072b4dea79b836439be760d8 /fs/nilfs2/segment.c | |
parent | e912a5b66837ee89fb025e67b5efeaa11930c2ce (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.c | 4 |
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); |