diff options
author | Christoph Hellwig <hch@lst.de> | 2009-03-29 09:51:14 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@brick.lst.de> | 2009-03-29 09:51:14 +0200 |
commit | 6447c36209c4268352d55d04d041396ebb8add4a (patch) | |
tree | 4aeea6dd797c6e8eceb9f9924d44f76b3237c6ef /fs/xfs/xfs_dinode.h | |
parent | a19d9f887d81106d52cacbc9930207b487e07e0e (diff) | |
download | linux-stable-6447c36209c4268352d55d04d041396ebb8add4a.tar.gz linux-stable-6447c36209c4268352d55d04d041396ebb8add4a.tar.bz2 linux-stable-6447c36209c4268352d55d04d041396ebb8add4a.zip |
xfs: remove m_litino
With the upcoming v3 inodes the inode data/attr area size needs to be
calculated for each specific inode, so we can't cache it in the superblock
anymore.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dinode.h')
-rw-r--r-- | fs/xfs/xfs_dinode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dinode.h b/fs/xfs/xfs_dinode.h index 162e8726df5e..e5b153b2e6a3 100644 --- a/fs/xfs/xfs_dinode.h +++ b/fs/xfs/xfs_dinode.h @@ -103,7 +103,9 @@ typedef enum xfs_dinode_fmt { /* * Inode size for given fs. */ -#define XFS_LITINO(mp) ((mp)->m_litino) +#define XFS_LITINO(mp) \ + ((int)(((mp)->m_sb.sb_inodesize) - sizeof(struct xfs_dinode))) + #define XFS_BROOT_SIZE_ADJ \ (XFS_BTREE_LBLOCK_LEN - sizeof(xfs_bmdr_block_t)) |