diff options
author | Christoph Hellwig <hch@lst.de> | 2013-03-12 08:30:36 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-03-14 17:19:14 -0400 |
commit | 56cea2d088811b8cf7d2893e29bcf369a912de69 (patch) | |
tree | ab131c69db53bb17879d9efada9534d17e54cc57 /fs/xfs/xfs_bmap.c | |
parent | c163f9a1760229a95d04e37b332de7d5c1c225cd (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_bmap.c')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index d490fe8fd19f..20efb397a7f4 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -228,13 +228,13 @@ xfs_default_attroffset( | |||
228 | uint offset; | 228 | uint offset; |
229 | 229 | ||
230 | if (mp->m_sb.sb_inodesize == 256) { | 230 | if (mp->m_sb.sb_inodesize == 256) { |
231 | offset = XFS_LITINO(mp) - | 231 | offset = XFS_LITINO(mp, ip->i_d.di_version) - |
232 | XFS_BMDR_SPACE_CALC(MINABTPTRS); | 232 | XFS_BMDR_SPACE_CALC(MINABTPTRS); |
233 | } else { | 233 | } else { |
234 | offset = XFS_BMDR_SPACE_CALC(6 * MINABTPTRS); | 234 | offset = XFS_BMDR_SPACE_CALC(6 * MINABTPTRS); |
235 | } | 235 | } |
236 | 236 | ||
237 | ASSERT(offset < XFS_LITINO(mp)); | 237 | ASSERT(offset < XFS_LITINO(mp, ip->i_d.di_version)); |
238 | return offset; | 238 | return offset; |
239 | } | 239 | } |
240 | 240 | ||