• Home
  • Raw
  • Download

Lines Matching refs:mp

35 	struct xfs_mount	*mp,  in xfs_qm_fill_state()  argument
39 struct xfs_quotainfo *q = mp->m_quotainfo; in xfs_qm_fill_state()
46 if (xfs_iget(mp, NULL, ino, 0, 0, &ip)) in xfs_qm_fill_state()
72 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_quota_state() local
73 struct xfs_quotainfo *q = mp->m_quotainfo; in xfs_fs_get_quota_state()
76 if (!XFS_IS_QUOTA_RUNNING(mp)) in xfs_fs_get_quota_state()
79 if (XFS_IS_UQUOTA_RUNNING(mp)) in xfs_fs_get_quota_state()
81 if (XFS_IS_UQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state()
83 if (XFS_IS_GQUOTA_RUNNING(mp)) in xfs_fs_get_quota_state()
85 if (XFS_IS_GQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state()
87 if (XFS_IS_PQUOTA_RUNNING(mp)) in xfs_fs_get_quota_state()
89 if (XFS_IS_PQUOTA_ENFORCED(mp)) in xfs_fs_get_quota_state()
92 xfs_qm_fill_state(&state->s_state[USRQUOTA], mp, q->qi_uquotaip, in xfs_fs_get_quota_state()
93 mp->m_sb.sb_uquotino); in xfs_fs_get_quota_state()
94 xfs_qm_fill_state(&state->s_state[GRPQUOTA], mp, q->qi_gquotaip, in xfs_fs_get_quota_state()
95 mp->m_sb.sb_gquotino); in xfs_fs_get_quota_state()
96 xfs_qm_fill_state(&state->s_state[PRJQUOTA], mp, q->qi_pquotaip, in xfs_fs_get_quota_state()
97 mp->m_sb.sb_pquotino); in xfs_fs_get_quota_state()
125 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_set_info() local
130 if (!XFS_IS_QUOTA_RUNNING(mp)) in xfs_fs_set_info()
132 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_set_info()
147 return xfs_qm_scall_setqlim(mp, 0, xfs_quota_type(type), &newlim); in xfs_fs_set_info()
176 struct xfs_mount *mp = XFS_M(sb); in xfs_quota_enable() local
180 if (!XFS_IS_QUOTA_RUNNING(mp)) in xfs_quota_enable()
183 return xfs_qm_scall_quotaon(mp, xfs_quota_flags(uflags)); in xfs_quota_enable()
191 struct xfs_mount *mp = XFS_M(sb); in xfs_quota_disable() local
195 if (!XFS_IS_QUOTA_RUNNING(mp)) in xfs_quota_disable()
197 if (!XFS_IS_QUOTA_ON(mp)) in xfs_quota_disable()
200 return xfs_qm_scall_quotaoff(mp, xfs_quota_flags(uflags)); in xfs_quota_disable()
208 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_rm_xquota() local
214 if (XFS_IS_QUOTA_ON(mp)) in xfs_fs_rm_xquota()
227 return xfs_qm_scall_trunc_qfiles(mp, flags); in xfs_fs_rm_xquota()
236 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_dqblk() local
239 if (!XFS_IS_QUOTA_RUNNING(mp)) in xfs_fs_get_dqblk()
241 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_get_dqblk()
245 return xfs_qm_scall_getquota(mp, &id, in xfs_fs_get_dqblk()
257 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_nextdqblk() local
260 if (!XFS_IS_QUOTA_RUNNING(mp)) in xfs_fs_get_nextdqblk()
262 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_get_nextdqblk()
266 ret = xfs_qm_scall_getquota(mp, &id, in xfs_fs_get_nextdqblk()
283 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_set_dqblk() local
287 if (!XFS_IS_QUOTA_RUNNING(mp)) in xfs_fs_set_dqblk()
289 if (!XFS_IS_QUOTA_ON(mp)) in xfs_fs_set_dqblk()
292 return xfs_qm_scall_setqlim(mp, from_kqid(&init_user_ns, qid), in xfs_fs_set_dqblk()