diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-06-08 01:44:54 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-06-14 13:28:24 -0400 |
commit | 32972383ca46223aa2b129826b3789721ec147aa (patch) | |
tree | 11750ff77efd52b933bb1531b0129eb32597fff8 /fs/xfs/xfs_bmap.c | |
parent | d2c2819117176e139dc761873c664aaa770c79c9 (diff) |
xfs: make largest supported offset less shouty
XFS_MAXIOFFSET() is just a simple macro that resolves to
mp->m_maxioffset. It doesn't need to exist, and it just makes the
code unnecessarily loud and shouty.
Make it quiet and easy to read.
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_bmap.c')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index 58b815ec8c91..848ffa77707b 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -5517,7 +5517,7 @@ xfs_getbmap( | |||
5517 | if (xfs_get_extsz_hint(ip) || | 5517 | if (xfs_get_extsz_hint(ip) || |
5518 | ip->i_d.di_flags & (XFS_DIFLAG_PREALLOC|XFS_DIFLAG_APPEND)){ | 5518 | ip->i_d.di_flags & (XFS_DIFLAG_PREALLOC|XFS_DIFLAG_APPEND)){ |
5519 | prealloced = 1; | 5519 | prealloced = 1; |
5520 | fixlen = XFS_MAXIOFFSET(mp); | 5520 | fixlen = mp->m_super->s_maxbytes; |
5521 | } else { | 5521 | } else { |
5522 | prealloced = 0; | 5522 | prealloced = 0; |
5523 | fixlen = XFS_ISIZE(ip); | 5523 | fixlen = XFS_ISIZE(ip); |