xfs: Fix some inode number conversions
commit02b8dd39a9bb92e723e67457552b57505c6ae37a
authorPaulo Alcantara <pcacjr@zytor.com>
Sat, 14 Jul 2012 06:27:09 +0000 (14 03:27 -0300)
committerPaulo Alcantara <pcacjr@zytor.com>
Sat, 21 Jul 2012 04:21:46 +0000 (21 01:21 -0300)
treec431a10621b20a354cbaa447019057b82adfbe26
parent533d97658da0fb3ae0930c58520bf7a27177fa8f
xfs: Fix some inode number conversions

Use ino_to_bytes() in conjuction with BLOCK_SHIFT() to calculate the
right filesystem block number from given inode numbers.

The old calculation wouldn't work since the calculation was returning
filesystem block numbers which are sparse enconding of the disk location.

Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
core/fs/xfs/xfs.c