diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-06-08 01:44:53 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-06-14 13:28:22 -0400 |
commit | d2c2819117176e139dc761873c664aaa770c79c9 (patch) | |
tree | 03c64c1d3f21f8628ca313b276ce327a3c012549 /fs/xfs/xfs_iomap.c | |
parent | 0f2cf9d3d917b269645902506adaa4ff92b5e506 (diff) |
xfs: m_maxioffset is redundant
The m_maxioffset field in the struct xfs_mount contains the same
value as the superblock s_maxbytes field. There is no need to carry
two copies of this limit around, so use the VFS superblock version.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_iomap.c')
-rw-r--r-- | fs/xfs/xfs_iomap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index aadfce6681ee..4590cd1da432 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c | |||
@@ -416,8 +416,8 @@ retry: | |||
416 | * Make sure preallocation does not create extents beyond the range we | 416 | * Make sure preallocation does not create extents beyond the range we |
417 | * actually support in this filesystem. | 417 | * actually support in this filesystem. |
418 | */ | 418 | */ |
419 | if (last_fsb > XFS_B_TO_FSB(mp, mp->m_maxioffset)) | 419 | if (last_fsb > XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes)) |
420 | last_fsb = XFS_B_TO_FSB(mp, mp->m_maxioffset); | 420 | last_fsb = XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes); |
421 | 421 | ||
422 | ASSERT(last_fsb > offset_fsb); | 422 | ASSERT(last_fsb > offset_fsb); |
423 | 423 | ||