nilfs2: get rid of NILFS_I_NILFS
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Thu, 5 May 2011 03:56:51 +0000 (12:56 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 10 May 2011 13:21:56 +0000 (22:21 +0900)
commit0ef28f9aec4dccfba33cef74412f601c1b48b658
tree12018cde66a20b8e8804c11296ac19a3aec59fea
parent0cc1283881d3fcc9011c713e067795ccec322ae7
nilfs2: get rid of NILFS_I_NILFS

This replaces all references of NILFS_I_NILFS(inode)->ns_bdev with
inode->i_sb->s_bdev and unfolds remaining uses of NILFS_I_NILFS inline
function.

Before 2.6.37, referring to a nilfs object from inodes needed a
conditional judgement, and NILFS_I_NILFS was helpful to simplify it.
But now we can simply do it by going through a super block instance
like inode->i_sb->s_fs_info.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/bmap.c
fs/nilfs2/btnode.c
fs/nilfs2/gcinode.c
fs/nilfs2/inode.c
fs/nilfs2/mdt.h
fs/nilfs2/sufile.c
fs/nilfs2/sufile.h