summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_qm.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-06-08 15:44:54 +1000
committerBen Myers <bpm@sgi.com>2012-06-14 12:28:24 -0500
commit32972383ca46223aa2b129826b3789721ec147aa (patch)
tree11750ff77efd52b933bb1531b0129eb32597fff8 /fs/xfs/xfs_qm.c
parentd2c2819117176e139dc761873c664aaa770c79c9 (diff)
downloadlinux-stable-32972383ca46223aa2b129826b3789721ec147aa.tar.gz
linux-stable-32972383ca46223aa2b129826b3789721ec147aa.tar.bz2
linux-stable-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_qm.c')
-rw-r--r--fs/xfs/xfs_qm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c
index 249db1987764..2e86fa0cfc0d 100644
--- a/fs/xfs/xfs_qm.c
+++ b/fs/xfs/xfs_qm.c
@@ -940,7 +940,7 @@ xfs_qm_dqiterate(
map = kmem_alloc(XFS_DQITER_MAP_SIZE * sizeof(*map), KM_SLEEP);
lblkno = 0;
- maxlblkcnt = XFS_B_TO_FSB(mp, (xfs_ufsize_t)XFS_MAXIOFFSET(mp));
+ maxlblkcnt = XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes);
do {
nmaps = XFS_DQITER_MAP_SIZE;
/*