Lines Matching full:mp

22 	struct xfs_mount	*mp,  in xfs_qm_fill_state()  argument
33 if (xfs_iget(mp, NULL, ino, 0, 0, &ip)) in xfs_qm_fill_state()
59 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_quota_state() local
60 struct xfs_quotainfo *q = mp->m_quotainfo; in xfs_fs_get_quota_state()
63 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_get_quota_state()
66 if (XFS_IS_UQUOTA_ON(mp)) in xfs_fs_get_quota_state()
68 if (XFS_IS_UQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state()
70 if (XFS_IS_GQUOTA_ON(mp)) in xfs_fs_get_quota_state()
72 if (XFS_IS_GQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state()
74 if (XFS_IS_PQUOTA_ON(mp)) in xfs_fs_get_quota_state()
76 if (XFS_IS_PQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state()
79 xfs_qm_fill_state(&state->s_state[USRQUOTA], mp, q->qi_uquotaip, in xfs_fs_get_quota_state()
80 mp->m_sb.sb_uquotino, &q->qi_usr_default); in xfs_fs_get_quota_state()
81 xfs_qm_fill_state(&state->s_state[GRPQUOTA], mp, q->qi_gquotaip, in xfs_fs_get_quota_state()
82 mp->m_sb.sb_gquotino, &q->qi_grp_default); in xfs_fs_get_quota_state()
83 xfs_qm_fill_state(&state->s_state[PRJQUOTA], mp, q->qi_pquotaip, in xfs_fs_get_quota_state()
84 mp->m_sb.sb_pquotino, &q->qi_prj_default); in xfs_fs_get_quota_state()
112 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_set_info() local
117 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_set_info()
132 return xfs_qm_scall_setqlim(mp, 0, xfs_quota_type(type), &newlim); in xfs_fs_set_info()
161 struct xfs_mount *mp = XFS_M(sb); in xfs_quota_enable() local
165 if (!XFS_IS_QUOTA_ON(mp)) in xfs_quota_enable()
168 return xfs_qm_scall_quotaon(mp, xfs_quota_flags(uflags)); in xfs_quota_enable()
176 struct xfs_mount *mp = XFS_M(sb); in xfs_quota_disable() local
180 if (!XFS_IS_QUOTA_ON(mp)) in xfs_quota_disable()
183 return xfs_qm_scall_quotaoff(mp, xfs_quota_flags(uflags)); in xfs_quota_disable()
191 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_rm_xquota() local
197 if (XFS_IS_QUOTA_ON(mp)) in xfs_fs_rm_xquota()
210 return xfs_qm_scall_trunc_qfiles(mp, flags); in xfs_fs_rm_xquota()
219 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_dqblk() local
222 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_get_dqblk()
226 return xfs_qm_scall_getquota(mp, id, xfs_quota_type(qid.type), qdq); in xfs_fs_get_dqblk()
237 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_nextdqblk() local
240 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_get_nextdqblk()
244 ret = xfs_qm_scall_getquota_next(mp, &id, xfs_quota_type(qid->type), in xfs_fs_get_nextdqblk()
260 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_set_dqblk() local
264 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_set_dqblk()
267 return xfs_qm_scall_setqlim(mp, from_kqid(&init_user_ns, qid), in xfs_fs_set_dqblk()