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/inode.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/inode.c')
-rw-r--r-- | fs/nilfs2/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c index 7e883d5a5033..ca09e4362d66 100644 --- a/fs/nilfs2/inode.c +++ b/fs/nilfs2/inode.c | |||
@@ -306,7 +306,7 @@ struct inode *nilfs_new_inode(struct inode *dir, int mode) | |||
306 | goto failed_ifile_create_inode; | 306 | goto failed_ifile_create_inode; |
307 | /* reference count of i_bh inherits from nilfs_mdt_read_block() */ | 307 | /* reference count of i_bh inherits from nilfs_mdt_read_block() */ |
308 | 308 | ||
309 | atomic_inc(&sbi->s_inodes_count); | 309 | atomic_inc(&root->inodes_count); |
310 | inode_init_owner(inode, dir, mode); | 310 | inode_init_owner(inode, dir, mode); |
311 | inode->i_ino = ino; | 311 | inode->i_ino = ino; |
312 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 312 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |
@@ -715,7 +715,7 @@ void nilfs_evict_inode(struct inode *inode) | |||
715 | end_writeback(inode); | 715 | end_writeback(inode); |
716 | 716 | ||
717 | nilfs_ifile_delete_inode(ii->i_root->ifile, inode->i_ino); | 717 | nilfs_ifile_delete_inode(ii->i_root->ifile, inode->i_ino); |
718 | atomic_dec(&NILFS_SB(sb)->s_inodes_count); | 718 | atomic_dec(&ii->i_root->inodes_count); |
719 | 719 | ||
720 | nilfs_clear_inode(inode); | 720 | nilfs_clear_inode(inode); |
721 | 721 | ||