Lines Matching full:mp
22 struct xfs_mount *mp, in xfs_qm_fill_state() argument
29 error = xfs_qm_qino_load(mp, type, &ip); in xfs_qm_fill_state()
35 defq = xfs_get_defquota(mp->m_quotainfo, type); in xfs_qm_fill_state()
61 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_quota_state() local
62 struct xfs_quotainfo *q = mp->m_quotainfo; in xfs_fs_get_quota_state()
66 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_get_quota_state()
69 if (XFS_IS_UQUOTA_ON(mp)) in xfs_fs_get_quota_state()
71 if (XFS_IS_UQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state()
73 if (XFS_IS_GQUOTA_ON(mp)) in xfs_fs_get_quota_state()
75 if (XFS_IS_GQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state()
77 if (XFS_IS_PQUOTA_ON(mp)) in xfs_fs_get_quota_state()
79 if (XFS_IS_PQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state()
82 error = xfs_qm_fill_state(&state->s_state[USRQUOTA], mp, in xfs_fs_get_quota_state()
86 error = xfs_qm_fill_state(&state->s_state[GRPQUOTA], mp, in xfs_fs_get_quota_state()
90 error = xfs_qm_fill_state(&state->s_state[PRJQUOTA], mp, in xfs_fs_get_quota_state()
121 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_set_info() local
126 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_set_info()
141 return xfs_qm_scall_setqlim(mp, 0, xfs_quota_type(type), &newlim); in xfs_fs_set_info()
170 struct xfs_mount *mp = XFS_M(sb); in xfs_quota_enable() local
174 if (!XFS_IS_QUOTA_ON(mp)) in xfs_quota_enable()
177 return xfs_qm_scall_quotaon(mp, xfs_quota_flags(uflags)); in xfs_quota_enable()
185 struct xfs_mount *mp = XFS_M(sb); in xfs_quota_disable() local
189 if (!XFS_IS_QUOTA_ON(mp)) in xfs_quota_disable()
192 return xfs_qm_scall_quotaoff(mp, xfs_quota_flags(uflags)); in xfs_quota_disable()
200 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_rm_xquota() local
206 if (XFS_IS_QUOTA_ON(mp)) in xfs_fs_rm_xquota()
219 return xfs_qm_scall_trunc_qfiles(mp, flags); in xfs_fs_rm_xquota()
228 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_dqblk() local
231 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_get_dqblk()
235 return xfs_qm_scall_getquota(mp, id, xfs_quota_type(qid.type), qdq); in xfs_fs_get_dqblk()
246 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_nextdqblk() local
249 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_get_nextdqblk()
253 ret = xfs_qm_scall_getquota_next(mp, &id, xfs_quota_type(qid->type), in xfs_fs_get_nextdqblk()
269 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_set_dqblk() local
273 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_set_dqblk()
276 return xfs_qm_scall_setqlim(mp, from_kqid(&init_user_ns, qid), in xfs_fs_set_dqblk()