summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_dquot_buf.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2014-04-14 13:03:34 +0400
committerDave Chinner <david@fromorbit.com>2014-04-14 13:03:34 +0400
commit6ea94bb5b30f14717e349f4e3ea4a6df03e1ee67 (patch)
treed4e0b6ce90d57437633c3020fc586a6f9318ef66 /fs/xfs/xfs_dquot_buf.c
parent25994053745be958aa8455a753a5c965a9006ba4 (diff)
downloadlinux-6ea94bb5b30f14717e349f4e3ea4a6df03e1ee67.tar.xz
xfs: remove unused mp arg from xfs_calc_dquots_per_chunk()
Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_dquot_buf.c')
-rw-r--r--fs/xfs/xfs_dquot_buf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_dquot_buf.c b/fs/xfs/xfs_dquot_buf.c
index 610da8177737..c2ac0c611ad8 100644
--- a/fs/xfs/xfs_dquot_buf.c
+++ b/fs/xfs/xfs_dquot_buf.c
@@ -35,7 +35,6 @@
int
xfs_calc_dquots_per_chunk(
- struct xfs_mount *mp,
unsigned int nbblks) /* basic block units */
{
unsigned int ndquots;
@@ -194,7 +193,7 @@ xfs_dquot_buf_verify_crc(
if (mp->m_quotainfo)
ndquots = mp->m_quotainfo->qi_dqperchunk;
else
- ndquots = xfs_calc_dquots_per_chunk(mp,
+ ndquots = xfs_calc_dquots_per_chunk(
XFS_BB_TO_FSB(mp, bp->b_length));
for (i = 0; i < ndquots; i++, d++) {
@@ -225,7 +224,7 @@ xfs_dquot_buf_verify(
if (mp->m_quotainfo)
ndquots = mp->m_quotainfo->qi_dqperchunk;
else
- ndquots = xfs_calc_dquots_per_chunk(mp, bp->b_length);
+ ndquots = xfs_calc_dquots_per_chunk(bp->b_length);
/*
* On the first read of the buffer, verify that each dquot is valid.