*/
 void
 xfs_qm_adjust_dqlimits(
-       struct xfs_mount        *mp,
        struct xfs_dquot        *dq)
 {
+       struct xfs_mount        *mp = dq->q_mount;
        struct xfs_quotainfo    *q = mp->m_quotainfo;
        struct xfs_def_quota    *defq;
        int                     prealloc = 0;
  */
 void
 xfs_qm_adjust_dqtimers(
-       struct xfs_mount        *mp,
        struct xfs_dquot        *dq)
 {
+       struct xfs_mount        *mp = dq->q_mount;
        struct xfs_quotainfo    *qi = mp->m_quotainfo;
        struct xfs_def_quota    *defq;
 
 
 void           xfs_qm_dqdestroy(struct xfs_dquot *dqp);
 int            xfs_qm_dqflush(struct xfs_dquot *dqp, struct xfs_buf **bpp);
 void           xfs_qm_dqunpin_wait(struct xfs_dquot *dqp);
-void           xfs_qm_adjust_dqtimers(struct xfs_mount *mp,
-                                               struct xfs_dquot *d);
-void           xfs_qm_adjust_dqlimits(struct xfs_mount *mp,
-                                               struct xfs_dquot *d);
-xfs_dqid_t     xfs_qm_id_for_quotatype(struct xfs_inode *ip, uint type);
+void           xfs_qm_adjust_dqtimers(struct xfs_dquot *d);
+void           xfs_qm_adjust_dqlimits(struct xfs_dquot *d);
+xfs_dqid_t     xfs_qm_id_for_quotatype(struct xfs_inode *ip,
+                               uint type);
 int            xfs_qm_dqget(struct xfs_mount *mp, xfs_dqid_t id,
                                        uint type, bool can_alloc,
                                        struct xfs_dquot **dqpp);
 
         * There are no timers for the default values set in the root dquot.
         */
        if (dqp->q_id) {
-               xfs_qm_adjust_dqlimits(mp, dqp);
-               xfs_qm_adjust_dqtimers(mp, dqp);
+               xfs_qm_adjust_dqlimits(dqp);
+               xfs_qm_adjust_dqtimers(dqp);
        }
 
        dqp->q_flags |= XFS_DQFLAG_DIRTY;
 
                 * is on or off. We don't really want to bother with iterating
                 * over all ondisk dquots and turning the timers on/off.
                 */
-               xfs_qm_adjust_dqtimers(mp, dqp);
+               xfs_qm_adjust_dqtimers(dqp);
        }
        dqp->q_flags |= XFS_DQFLAG_DIRTY;
        xfs_trans_log_dquot(tp, dqp);
 
                         * Start/reset the timer(s) if needed.
                         */
                        if (dqp->q_id) {
-                               xfs_qm_adjust_dqlimits(tp->t_mountp, dqp);
-                               xfs_qm_adjust_dqtimers(tp->t_mountp, dqp);
+                               xfs_qm_adjust_dqlimits(dqp);
+                               xfs_qm_adjust_dqtimers(dqp);
                        }
 
                        dqp->q_flags |= XFS_DQFLAG_DIRTY;