aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2013-03-12 08:30:36 -0400
committerBen Myers <bpm@sgi.com>2013-03-14 17:19:14 -0400
commit56cea2d088811b8cf7d2893e29bcf369a912de69 (patch)
treeab131c69db53bb17879d9efada9534d17e54cc57 /fs/xfs/xfs_inode.h
parentc163f9a1760229a95d04e37b332de7d5c1c225cd (diff)
xfs: take inode version into account in XFS_LITINO
Add a version argument to XFS_LITINO so that it can return different values depending on the inode version. This is required for the upcoming v3 inodes with a larger fixed layout dinode. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Ben Myers <bpm@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r--fs/xfs/xfs_inode.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h
index 237e7f6f2ab3..b8520b5c3a18 100644
--- a/fs/xfs/xfs_inode.h
+++ b/fs/xfs/xfs_inode.h
@@ -180,10 +180,11 @@ typedef struct xfs_icdinode {
180#define XFS_IFORK_DSIZE(ip) \ 180#define XFS_IFORK_DSIZE(ip) \
181 (XFS_IFORK_Q(ip) ? \ 181 (XFS_IFORK_Q(ip) ? \
182 XFS_IFORK_BOFF(ip) : \ 182 XFS_IFORK_BOFF(ip) : \
183 XFS_LITINO((ip)->i_mount)) 183 XFS_LITINO((ip)->i_mount, (ip)->i_d.di_version))
184#define XFS_IFORK_ASIZE(ip) \ 184#define XFS_IFORK_ASIZE(ip) \
185 (XFS_IFORK_Q(ip) ? \ 185 (XFS_IFORK_Q(ip) ? \
186 XFS_LITINO((ip)->i_mount) - XFS_IFORK_BOFF(ip) : \ 186 XFS_LITINO((ip)->i_mount, (ip)->i_d.di_version) - \
187 XFS_IFORK_BOFF(ip) : \
187 0) 188 0)
188#define XFS_IFORK_SIZE(ip,w) \ 189#define XFS_IFORK_SIZE(ip,w) \
189 ((w) == XFS_DATA_FORK ? \ 190 ((w) == XFS_DATA_FORK ? \