nilfs2: super root size should change depending on inode size
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 30 Apr 2011 09:56:12 +0000 (18:56 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 10 May 2011 13:21:44 +0000 (22:21 +0900)
commit6c6de1aa65189c37cc3c9af78da756c06a99899b
tree13f6d4a90d81357d581b80b8e400bd0b53b0a3e7
parent1cb2d38cb3e59d58e8321a0592e84b5761afb063
nilfs2: super root size should change depending on inode size

The size of super root structure depends on inode size, so
NILFS_SR_BYTES macro should be a function of the inode size.  This
fixes the issue.

Even though a different size value will be written for a possible
future filesystem with extended inode, but fortunately this does not
break disk format compatibility.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/segbuf.c
fs/nilfs2/segment.c
include/linux/nilfs2_fs.h