Dave Chinner | 0b61f8a | 2018-06-05 19:42:14 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2008, Christoph Hellwig |
| 4 | * All Rights Reserved. |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 5 | */ |
| 6 | #include "xfs.h" |
Darrick J. Wong | 5467b34 | 2019-06-28 19:25:35 -0700 | [diff] [blame] | 7 | #include "xfs_shared.h" |
Dave Chinner | 6ca1c90 | 2013-08-12 20:49:26 +1000 | [diff] [blame] | 8 | #include "xfs_format.h" |
Dave Chinner | 239880e | 2013-10-23 10:50:10 +1100 | [diff] [blame] | 9 | #include "xfs_log_format.h" |
Dave Chinner | 7fd36c4 | 2013-08-12 20:49:32 +1000 | [diff] [blame] | 10 | #include "xfs_trans_resv.h" |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 11 | #include "xfs_mount.h" |
Dave Chinner | a4fbe6a | 2013-10-23 10:51:50 +1100 | [diff] [blame] | 12 | #include "xfs_inode.h" |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 13 | #include "xfs_quota.h" |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 14 | #include "xfs_trans.h" |
Jan Kara | 5d3684c | 2014-11-19 12:03:59 +0100 | [diff] [blame] | 15 | #include "xfs_icache.h" |
Alex Elder | 06f8e2d6 | 2011-08-12 13:57:55 -0500 | [diff] [blame] | 16 | #include "xfs_qm.h" |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 17 | |
| 18 | |
Jan Kara | 5d3684c | 2014-11-19 12:03:59 +0100 | [diff] [blame] | 19 | static void |
| 20 | xfs_qm_fill_state( |
| 21 | struct qc_type_state *tstate, |
| 22 | struct xfs_mount *mp, |
| 23 | struct xfs_inode *ip, |
Eric Sandeen | e850301 | 2020-05-21 13:07:01 -0700 | [diff] [blame] | 24 | xfs_ino_t ino, |
| 25 | struct xfs_def_quota *defq) |
Jan Kara | 5d3684c | 2014-11-19 12:03:59 +0100 | [diff] [blame] | 26 | { |
Eric Sandeen | 8d077f5 | 2020-05-21 13:07:00 -0700 | [diff] [blame] | 27 | bool tempqip = false; |
Jan Kara | 5d3684c | 2014-11-19 12:03:59 +0100 | [diff] [blame] | 28 | |
| 29 | tstate->ino = ino; |
| 30 | if (!ip && ino == NULLFSINO) |
| 31 | return; |
| 32 | if (!ip) { |
| 33 | if (xfs_iget(mp, NULL, ino, 0, 0, &ip)) |
| 34 | return; |
| 35 | tempqip = true; |
| 36 | } |
| 37 | tstate->flags |= QCI_SYSFILE; |
Christoph Hellwig | 6e73a54 | 2021-03-29 11:11:40 -0700 | [diff] [blame^] | 38 | tstate->blocks = ip->i_nblocks; |
Christoph Hellwig | daf8396 | 2020-05-18 10:27:22 -0700 | [diff] [blame] | 39 | tstate->nextents = ip->i_df.if_nextents; |
Darrick J. Wong | 438769e | 2020-07-14 10:37:32 -0700 | [diff] [blame] | 40 | tstate->spc_timelimit = (u32)defq->blk.time; |
| 41 | tstate->ino_timelimit = (u32)defq->ino.time; |
| 42 | tstate->rt_spc_timelimit = (u32)defq->rtb.time; |
| 43 | tstate->spc_warnlimit = defq->blk.warn; |
| 44 | tstate->ino_warnlimit = defq->ino.warn; |
| 45 | tstate->rt_spc_warnlimit = defq->rtb.warn; |
Jan Kara | 5d3684c | 2014-11-19 12:03:59 +0100 | [diff] [blame] | 46 | if (tempqip) |
Darrick J. Wong | 44a8736 | 2018-07-25 12:52:32 -0700 | [diff] [blame] | 47 | xfs_irele(ip); |
Jan Kara | 5d3684c | 2014-11-19 12:03:59 +0100 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | /* |
| 51 | * Return quota status information, such as enforcements, quota file inode |
| 52 | * numbers etc. |
| 53 | */ |
| 54 | static int |
| 55 | xfs_fs_get_quota_state( |
| 56 | struct super_block *sb, |
| 57 | struct qc_state *state) |
| 58 | { |
| 59 | struct xfs_mount *mp = XFS_M(sb); |
| 60 | struct xfs_quotainfo *q = mp->m_quotainfo; |
| 61 | |
| 62 | memset(state, 0, sizeof(*state)); |
| 63 | if (!XFS_IS_QUOTA_RUNNING(mp)) |
| 64 | return 0; |
| 65 | state->s_incoredqs = q->qi_dquots; |
| 66 | if (XFS_IS_UQUOTA_RUNNING(mp)) |
| 67 | state->s_state[USRQUOTA].flags |= QCI_ACCT_ENABLED; |
| 68 | if (XFS_IS_UQUOTA_ENFORCED(mp)) |
| 69 | state->s_state[USRQUOTA].flags |= QCI_LIMITS_ENFORCED; |
| 70 | if (XFS_IS_GQUOTA_RUNNING(mp)) |
| 71 | state->s_state[GRPQUOTA].flags |= QCI_ACCT_ENABLED; |
| 72 | if (XFS_IS_GQUOTA_ENFORCED(mp)) |
| 73 | state->s_state[GRPQUOTA].flags |= QCI_LIMITS_ENFORCED; |
| 74 | if (XFS_IS_PQUOTA_RUNNING(mp)) |
| 75 | state->s_state[PRJQUOTA].flags |= QCI_ACCT_ENABLED; |
| 76 | if (XFS_IS_PQUOTA_ENFORCED(mp)) |
| 77 | state->s_state[PRJQUOTA].flags |= QCI_LIMITS_ENFORCED; |
| 78 | |
| 79 | xfs_qm_fill_state(&state->s_state[USRQUOTA], mp, q->qi_uquotaip, |
Eric Sandeen | e850301 | 2020-05-21 13:07:01 -0700 | [diff] [blame] | 80 | mp->m_sb.sb_uquotino, &q->qi_usr_default); |
Jan Kara | 5d3684c | 2014-11-19 12:03:59 +0100 | [diff] [blame] | 81 | xfs_qm_fill_state(&state->s_state[GRPQUOTA], mp, q->qi_gquotaip, |
Eric Sandeen | e850301 | 2020-05-21 13:07:01 -0700 | [diff] [blame] | 82 | mp->m_sb.sb_gquotino, &q->qi_grp_default); |
Jan Kara | 5d3684c | 2014-11-19 12:03:59 +0100 | [diff] [blame] | 83 | xfs_qm_fill_state(&state->s_state[PRJQUOTA], mp, q->qi_pquotaip, |
Eric Sandeen | e850301 | 2020-05-21 13:07:01 -0700 | [diff] [blame] | 84 | mp->m_sb.sb_pquotino, &q->qi_prj_default); |
Jan Kara | 5d3684c | 2014-11-19 12:03:59 +0100 | [diff] [blame] | 85 | return 0; |
| 86 | } |
| 87 | |
Darrick J. Wong | 1a7ed27 | 2020-07-15 17:53:43 -0700 | [diff] [blame] | 88 | STATIC xfs_dqtype_t |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 89 | xfs_quota_type(int type) |
| 90 | { |
| 91 | switch (type) { |
| 92 | case USRQUOTA: |
Darrick J. Wong | 8cd4901 | 2020-07-15 17:42:36 -0700 | [diff] [blame] | 93 | return XFS_DQTYPE_USER; |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 94 | case GRPQUOTA: |
Darrick J. Wong | 8cd4901 | 2020-07-15 17:42:36 -0700 | [diff] [blame] | 95 | return XFS_DQTYPE_GROUP; |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 96 | default: |
Darrick J. Wong | 8cd4901 | 2020-07-15 17:42:36 -0700 | [diff] [blame] | 97 | return XFS_DQTYPE_PROJ; |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 98 | } |
| 99 | } |
| 100 | |
Jan Kara | c14cad9 | 2014-12-16 13:07:45 +0100 | [diff] [blame] | 101 | #define XFS_QC_SETINFO_MASK (QC_TIMER_MASK | QC_WARNS_MASK) |
| 102 | |
| 103 | /* |
| 104 | * Adjust quota timers & warnings |
| 105 | */ |
| 106 | static int |
| 107 | xfs_fs_set_info( |
| 108 | struct super_block *sb, |
| 109 | int type, |
| 110 | struct qc_info *info) |
| 111 | { |
Eric Sandeen | 8d077f5 | 2020-05-21 13:07:00 -0700 | [diff] [blame] | 112 | struct xfs_mount *mp = XFS_M(sb); |
| 113 | struct qc_dqblk newlim; |
Jan Kara | c14cad9 | 2014-12-16 13:07:45 +0100 | [diff] [blame] | 114 | |
David Howells | bc98a42 | 2017-07-17 08:45:34 +0100 | [diff] [blame] | 115 | if (sb_rdonly(sb)) |
Jan Kara | c14cad9 | 2014-12-16 13:07:45 +0100 | [diff] [blame] | 116 | return -EROFS; |
| 117 | if (!XFS_IS_QUOTA_RUNNING(mp)) |
| 118 | return -ENOSYS; |
| 119 | if (!XFS_IS_QUOTA_ON(mp)) |
| 120 | return -ESRCH; |
| 121 | if (info->i_fieldmask & ~XFS_QC_SETINFO_MASK) |
| 122 | return -EINVAL; |
| 123 | if ((info->i_fieldmask & XFS_QC_SETINFO_MASK) == 0) |
| 124 | return 0; |
| 125 | |
| 126 | newlim.d_fieldmask = info->i_fieldmask; |
| 127 | newlim.d_spc_timer = info->i_spc_timelimit; |
| 128 | newlim.d_ino_timer = info->i_ino_timelimit; |
| 129 | newlim.d_rt_spc_timer = info->i_rt_spc_timelimit; |
| 130 | newlim.d_ino_warns = info->i_ino_warnlimit; |
| 131 | newlim.d_spc_warns = info->i_spc_warnlimit; |
| 132 | newlim.d_rt_spc_warns = info->i_rt_spc_warnlimit; |
| 133 | |
| 134 | return xfs_qm_scall_setqlim(mp, 0, xfs_quota_type(type), &newlim); |
| 135 | } |
| 136 | |
Jan Kara | 38e478c | 2014-10-08 15:56:21 +0200 | [diff] [blame] | 137 | static unsigned int |
| 138 | xfs_quota_flags(unsigned int uflags) |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 139 | { |
Jan Kara | 38e478c | 2014-10-08 15:56:21 +0200 | [diff] [blame] | 140 | unsigned int flags = 0; |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 141 | |
Christoph Hellwig | ade7ce3 | 2010-06-04 10:56:01 +0200 | [diff] [blame] | 142 | if (uflags & FS_QUOTA_UDQ_ACCT) |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 143 | flags |= XFS_UQUOTA_ACCT; |
Christoph Hellwig | ade7ce3 | 2010-06-04 10:56:01 +0200 | [diff] [blame] | 144 | if (uflags & FS_QUOTA_PDQ_ACCT) |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 145 | flags |= XFS_PQUOTA_ACCT; |
Christoph Hellwig | ade7ce3 | 2010-06-04 10:56:01 +0200 | [diff] [blame] | 146 | if (uflags & FS_QUOTA_GDQ_ACCT) |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 147 | flags |= XFS_GQUOTA_ACCT; |
Christoph Hellwig | ade7ce3 | 2010-06-04 10:56:01 +0200 | [diff] [blame] | 148 | if (uflags & FS_QUOTA_UDQ_ENFD) |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 149 | flags |= XFS_UQUOTA_ENFD; |
Chandra Seetharaman | 83e782e | 2013-06-27 17:25:10 -0500 | [diff] [blame] | 150 | if (uflags & FS_QUOTA_GDQ_ENFD) |
| 151 | flags |= XFS_GQUOTA_ENFD; |
| 152 | if (uflags & FS_QUOTA_PDQ_ENFD) |
| 153 | flags |= XFS_PQUOTA_ENFD; |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 154 | |
Jan Kara | 38e478c | 2014-10-08 15:56:21 +0200 | [diff] [blame] | 155 | return flags; |
| 156 | } |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 157 | |
Jan Kara | 38e478c | 2014-10-08 15:56:21 +0200 | [diff] [blame] | 158 | STATIC int |
| 159 | xfs_quota_enable( |
| 160 | struct super_block *sb, |
| 161 | unsigned int uflags) |
| 162 | { |
| 163 | struct xfs_mount *mp = XFS_M(sb); |
| 164 | |
David Howells | bc98a42 | 2017-07-17 08:45:34 +0100 | [diff] [blame] | 165 | if (sb_rdonly(sb)) |
Jan Kara | 38e478c | 2014-10-08 15:56:21 +0200 | [diff] [blame] | 166 | return -EROFS; |
| 167 | if (!XFS_IS_QUOTA_RUNNING(mp)) |
| 168 | return -ENOSYS; |
| 169 | |
| 170 | return xfs_qm_scall_quotaon(mp, xfs_quota_flags(uflags)); |
| 171 | } |
| 172 | |
| 173 | STATIC int |
| 174 | xfs_quota_disable( |
| 175 | struct super_block *sb, |
| 176 | unsigned int uflags) |
| 177 | { |
| 178 | struct xfs_mount *mp = XFS_M(sb); |
| 179 | |
David Howells | bc98a42 | 2017-07-17 08:45:34 +0100 | [diff] [blame] | 180 | if (sb_rdonly(sb)) |
Jan Kara | 38e478c | 2014-10-08 15:56:21 +0200 | [diff] [blame] | 181 | return -EROFS; |
| 182 | if (!XFS_IS_QUOTA_RUNNING(mp)) |
| 183 | return -ENOSYS; |
| 184 | if (!XFS_IS_QUOTA_ON(mp)) |
| 185 | return -EINVAL; |
| 186 | |
| 187 | return xfs_qm_scall_quotaoff(mp, xfs_quota_flags(uflags)); |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 188 | } |
| 189 | |
| 190 | STATIC int |
Eric Sandeen | 9da93f9 | 2014-05-05 17:25:50 +1000 | [diff] [blame] | 191 | xfs_fs_rm_xquota( |
| 192 | struct super_block *sb, |
| 193 | unsigned int uflags) |
| 194 | { |
| 195 | struct xfs_mount *mp = XFS_M(sb); |
| 196 | unsigned int flags = 0; |
Dave Chinner | 2451337 | 2014-06-25 14:58:08 +1000 | [diff] [blame] | 197 | |
David Howells | bc98a42 | 2017-07-17 08:45:34 +0100 | [diff] [blame] | 198 | if (sb_rdonly(sb)) |
Eric Sandeen | 9da93f9 | 2014-05-05 17:25:50 +1000 | [diff] [blame] | 199 | return -EROFS; |
| 200 | |
| 201 | if (XFS_IS_QUOTA_ON(mp)) |
| 202 | return -EINVAL; |
| 203 | |
Jan Kara | 3dd4d40 | 2019-10-23 17:00:45 -0700 | [diff] [blame] | 204 | if (uflags & ~(FS_USER_QUOTA | FS_GROUP_QUOTA | FS_PROJ_QUOTA)) |
| 205 | return -EINVAL; |
| 206 | |
Eric Sandeen | 9da93f9 | 2014-05-05 17:25:50 +1000 | [diff] [blame] | 207 | if (uflags & FS_USER_QUOTA) |
Darrick J. Wong | 41ed4a5 | 2020-07-14 10:36:09 -0700 | [diff] [blame] | 208 | flags |= XFS_QMOPT_UQUOTA; |
Eric Sandeen | 9da93f9 | 2014-05-05 17:25:50 +1000 | [diff] [blame] | 209 | if (uflags & FS_GROUP_QUOTA) |
Darrick J. Wong | 41ed4a5 | 2020-07-14 10:36:09 -0700 | [diff] [blame] | 210 | flags |= XFS_QMOPT_GQUOTA; |
Jie Liu | 74dc93a | 2014-07-24 21:27:17 +1000 | [diff] [blame] | 211 | if (uflags & FS_PROJ_QUOTA) |
Darrick J. Wong | 41ed4a5 | 2020-07-14 10:36:09 -0700 | [diff] [blame] | 212 | flags |= XFS_QMOPT_PQUOTA; |
Eric Sandeen | 9da93f9 | 2014-05-05 17:25:50 +1000 | [diff] [blame] | 213 | |
Dave Chinner | 2451337 | 2014-06-25 14:58:08 +1000 | [diff] [blame] | 214 | return xfs_qm_scall_trunc_qfiles(mp, flags); |
| 215 | } |
Eric Sandeen | 9da93f9 | 2014-05-05 17:25:50 +1000 | [diff] [blame] | 216 | |
| 217 | STATIC int |
Christoph Hellwig | b9b2dd3 | 2010-05-06 17:04:58 -0400 | [diff] [blame] | 218 | xfs_fs_get_dqblk( |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 219 | struct super_block *sb, |
Eric W. Biederman | 74a8a10 | 2012-09-16 02:07:49 -0700 | [diff] [blame] | 220 | struct kqid qid, |
Jan Kara | 14bf61f | 2014-10-09 16:03:13 +0200 | [diff] [blame] | 221 | struct qc_dqblk *qdq) |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 222 | { |
| 223 | struct xfs_mount *mp = XFS_M(sb); |
Eric Sandeen | 296c24e | 2016-02-08 11:27:38 +1100 | [diff] [blame] | 224 | xfs_dqid_t id; |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 225 | |
| 226 | if (!XFS_IS_QUOTA_RUNNING(mp)) |
| 227 | return -ENOSYS; |
| 228 | if (!XFS_IS_QUOTA_ON(mp)) |
| 229 | return -ESRCH; |
| 230 | |
Eric Sandeen | 296c24e | 2016-02-08 11:27:38 +1100 | [diff] [blame] | 231 | id = from_kqid(&init_user_ns, qid); |
Darrick J. Wong | 2e330e7 | 2018-05-04 15:30:20 -0700 | [diff] [blame] | 232 | return xfs_qm_scall_getquota(mp, id, xfs_quota_type(qid.type), qdq); |
Eric Sandeen | 296c24e | 2016-02-08 11:27:38 +1100 | [diff] [blame] | 233 | } |
| 234 | |
| 235 | /* Return quota info for active quota >= this qid */ |
| 236 | STATIC int |
| 237 | xfs_fs_get_nextdqblk( |
| 238 | struct super_block *sb, |
| 239 | struct kqid *qid, |
| 240 | struct qc_dqblk *qdq) |
| 241 | { |
| 242 | int ret; |
| 243 | struct xfs_mount *mp = XFS_M(sb); |
| 244 | xfs_dqid_t id; |
| 245 | |
| 246 | if (!XFS_IS_QUOTA_RUNNING(mp)) |
| 247 | return -ENOSYS; |
| 248 | if (!XFS_IS_QUOTA_ON(mp)) |
| 249 | return -ESRCH; |
| 250 | |
| 251 | id = from_kqid(&init_user_ns, *qid); |
Darrick J. Wong | 2e330e7 | 2018-05-04 15:30:20 -0700 | [diff] [blame] | 252 | ret = xfs_qm_scall_getquota_next(mp, &id, xfs_quota_type(qid->type), |
| 253 | qdq); |
Eric Sandeen | 296c24e | 2016-02-08 11:27:38 +1100 | [diff] [blame] | 254 | if (ret) |
| 255 | return ret; |
| 256 | |
| 257 | /* ID may be different, so convert back what we got */ |
| 258 | *qid = make_kqid(current_user_ns(), qid->type, id); |
| 259 | return 0; |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 260 | } |
| 261 | |
| 262 | STATIC int |
Christoph Hellwig | c472b43 | 2010-05-06 17:05:17 -0400 | [diff] [blame] | 263 | xfs_fs_set_dqblk( |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 264 | struct super_block *sb, |
Eric W. Biederman | 74a8a10 | 2012-09-16 02:07:49 -0700 | [diff] [blame] | 265 | struct kqid qid, |
Jan Kara | 14bf61f | 2014-10-09 16:03:13 +0200 | [diff] [blame] | 266 | struct qc_dqblk *qdq) |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 267 | { |
| 268 | struct xfs_mount *mp = XFS_M(sb); |
| 269 | |
David Howells | bc98a42 | 2017-07-17 08:45:34 +0100 | [diff] [blame] | 270 | if (sb_rdonly(sb)) |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 271 | return -EROFS; |
| 272 | if (!XFS_IS_QUOTA_RUNNING(mp)) |
| 273 | return -ENOSYS; |
| 274 | if (!XFS_IS_QUOTA_ON(mp)) |
| 275 | return -ESRCH; |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 276 | |
Dave Chinner | 2451337 | 2014-06-25 14:58:08 +1000 | [diff] [blame] | 277 | return xfs_qm_scall_setqlim(mp, from_kqid(&init_user_ns, qid), |
Jan Kara | 14bf61f | 2014-10-09 16:03:13 +0200 | [diff] [blame] | 278 | xfs_quota_type(qid.type), qdq); |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 279 | } |
| 280 | |
Alexey Dobriyan | 0d54b21 | 2009-09-21 17:01:09 -0700 | [diff] [blame] | 281 | const struct quotactl_ops xfs_quotactl_operations = { |
Jan Kara | 5d3684c | 2014-11-19 12:03:59 +0100 | [diff] [blame] | 282 | .get_state = xfs_fs_get_quota_state, |
Jan Kara | c14cad9 | 2014-12-16 13:07:45 +0100 | [diff] [blame] | 283 | .set_info = xfs_fs_set_info, |
Jan Kara | 38e478c | 2014-10-08 15:56:21 +0200 | [diff] [blame] | 284 | .quota_enable = xfs_quota_enable, |
| 285 | .quota_disable = xfs_quota_disable, |
Eric Sandeen | 9da93f9 | 2014-05-05 17:25:50 +1000 | [diff] [blame] | 286 | .rm_xquota = xfs_fs_rm_xquota, |
Christoph Hellwig | b9b2dd3 | 2010-05-06 17:04:58 -0400 | [diff] [blame] | 287 | .get_dqblk = xfs_fs_get_dqblk, |
Eric Sandeen | 296c24e | 2016-02-08 11:27:38 +1100 | [diff] [blame] | 288 | .get_nextdqblk = xfs_fs_get_nextdqblk, |
Christoph Hellwig | c472b43 | 2010-05-06 17:05:17 -0400 | [diff] [blame] | 289 | .set_dqblk = xfs_fs_set_dqblk, |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 290 | }; |