summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_file.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-06-08 07:44:54 +0200
committerBen Myers <bpm@sgi.com>2012-06-14 19:28:24 +0200
commit32972383ca46223aa2b129826b3789721ec147aa (patch)
tree11750ff77efd52b933bb1531b0129eb32597fff8 /fs/xfs/xfs_file.c
parentxfs: m_maxioffset is redundant (diff)
downloadlinux-32972383ca46223aa2b129826b3789721ec147aa.tar.xz
linux-32972383ca46223aa2b129826b3789721ec147aa.zip
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_file.c')
-rw-r--r--fs/xfs/xfs_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index 9f7ec15a6522..59e22c989cd4 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -273,7 +273,7 @@ xfs_file_aio_read(
}
}
- n = XFS_MAXIOFFSET(mp) - iocb->ki_pos;
+ n = mp->m_super->s_maxbytes - iocb->ki_pos;
if (n <= 0 || size == 0)
return 0;