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>
This commit is contained in:
@@ -416,8 +416,8 @@ retry:
|
||||
* Make sure preallocation does not create extents beyond the range we
|
||||
* actually support in this filesystem.
|
||||
*/
|
||||
if (last_fsb > XFS_B_TO_FSB(mp, mp->m_maxioffset))
|
||||
last_fsb = XFS_B_TO_FSB(mp, mp->m_maxioffset);
|
||||
if (last_fsb > XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes))
|
||||
last_fsb = XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes);
|
||||
|
||||
ASSERT(last_fsb > offset_fsb);
|
||||
|
||||
|
Reference in New Issue
Block a user