xfs_quota.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. /*
  2. * Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of version 2 of the GNU General Public License as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it would be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. *
  12. * Further, this software is distributed without any warranty that it is
  13. * free of the rightful claim of any third person regarding infringement
  14. * or the like. Any license provided herein, whether implied or
  15. * otherwise, applies only to this software file. Patent licenses, if
  16. * any, provided herein do not apply to combinations of this program with
  17. * other software, or any other product whatsoever.
  18. *
  19. * You should have received a copy of the GNU General Public License along
  20. * with this program; if not, write the Free Software Foundation, Inc., 59
  21. * Temple Place - Suite 330, Boston MA 02111-1307, USA.
  22. *
  23. * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
  24. * Mountain View, CA 94043, or:
  25. *
  26. * http://www.sgi.com
  27. *
  28. * For further information regarding this notice, see:
  29. *
  30. * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
  31. */
  32. #ifndef __XFS_QUOTA_H__
  33. #define __XFS_QUOTA_H__
  34. /*
  35. * The ondisk form of a dquot structure.
  36. */
  37. #define XFS_DQUOT_MAGIC 0x4451 /* 'DQ' */
  38. #define XFS_DQUOT_VERSION (u_int8_t)0x01 /* latest version number */
  39. /*
  40. * uid_t and gid_t are hard-coded to 32 bits in the inode.
  41. * Hence, an 'id' in a dquot is 32 bits..
  42. */
  43. typedef __int32_t xfs_dqid_t;
  44. /*
  45. * Eventhough users may not have quota limits occupying all 64-bits,
  46. * they may need 64-bit accounting. Hence, 64-bit quota-counters,
  47. * and quota-limits. This is a waste in the common case, but hey ...
  48. */
  49. typedef __uint64_t xfs_qcnt_t;
  50. typedef __uint16_t xfs_qwarncnt_t;
  51. /*
  52. * This is the main portion of the on-disk representation of quota
  53. * information for a user. This is the q_core of the xfs_dquot_t that
  54. * is kept in kernel memory. We pad this with some more expansion room
  55. * to construct the on disk structure.
  56. */
  57. typedef struct xfs_disk_dquot {
  58. /*16*/ u_int16_t d_magic; /* dquot magic = XFS_DQUOT_MAGIC */
  59. /*8 */ u_int8_t d_version; /* dquot version */
  60. /*8 */ u_int8_t d_flags; /* XFS_DQ_USER/PROJ/GROUP */
  61. /*32*/ xfs_dqid_t d_id; /* user,project,group id */
  62. /*64*/ xfs_qcnt_t d_blk_hardlimit;/* absolute limit on disk blks */
  63. /*64*/ xfs_qcnt_t d_blk_softlimit;/* preferred limit on disk blks */
  64. /*64*/ xfs_qcnt_t d_ino_hardlimit;/* maximum # allocated inodes */
  65. /*64*/ xfs_qcnt_t d_ino_softlimit;/* preferred inode limit */
  66. /*64*/ xfs_qcnt_t d_bcount; /* disk blocks owned by the user */
  67. /*64*/ xfs_qcnt_t d_icount; /* inodes owned by the user */
  68. /*32*/ __int32_t d_itimer; /* zero if within inode limits if not,
  69. this is when we refuse service */
  70. /*32*/ __int32_t d_btimer; /* similar to above; for disk blocks */
  71. /*16*/ xfs_qwarncnt_t d_iwarns; /* warnings issued wrt num inodes */
  72. /*16*/ xfs_qwarncnt_t d_bwarns; /* warnings issued wrt disk blocks */
  73. /*32*/ __int32_t d_pad0; /* 64 bit align */
  74. /*64*/ xfs_qcnt_t d_rtb_hardlimit;/* absolute limit on realtime blks */
  75. /*64*/ xfs_qcnt_t d_rtb_softlimit;/* preferred limit on RT disk blks */
  76. /*64*/ xfs_qcnt_t d_rtbcount; /* realtime blocks owned */
  77. /*32*/ __int32_t d_rtbtimer; /* similar to above; for RT disk blocks */
  78. /*16*/ xfs_qwarncnt_t d_rtbwarns; /* warnings issued wrt RT disk blocks */
  79. /*16*/ __uint16_t d_pad;
  80. } xfs_disk_dquot_t;
  81. /*
  82. * This is what goes on disk. This is separated from the xfs_disk_dquot because
  83. * carrying the unnecessary padding would be a waste of memory.
  84. */
  85. typedef struct xfs_dqblk {
  86. xfs_disk_dquot_t dd_diskdq; /* portion that lives incore as well */
  87. char dd_fill[32]; /* filling for posterity */
  88. } xfs_dqblk_t;
  89. /*
  90. * flags for q_flags field in the dquot.
  91. */
  92. #define XFS_DQ_USER 0x0001 /* a user quota */
  93. #define XFS_DQ_PROJ 0x0002 /* project quota */
  94. #define XFS_DQ_GROUP 0x0004 /* a group quota */
  95. #define XFS_DQ_FLOCKED 0x0008 /* flush lock taken */
  96. #define XFS_DQ_DIRTY 0x0010 /* dquot is dirty */
  97. #define XFS_DQ_WANT 0x0020 /* for lookup/reclaim race */
  98. #define XFS_DQ_INACTIVE 0x0040 /* dq off mplist & hashlist */
  99. #define XFS_DQ_MARKER 0x0080 /* sentinel */
  100. #define XFS_DQ_ALLTYPES (XFS_DQ_USER|XFS_DQ_PROJ|XFS_DQ_GROUP)
  101. /*
  102. * In the worst case, when both user and group quotas are on,
  103. * we can have a max of three dquots changing in a single transaction.
  104. */
  105. #define XFS_DQUOT_LOGRES(mp) (sizeof(xfs_disk_dquot_t) * 3)
  106. /*
  107. * These are the structures used to lay out dquots and quotaoff
  108. * records on the log. Quite similar to those of inodes.
  109. */
  110. /*
  111. * log format struct for dquots.
  112. * The first two fields must be the type and size fitting into
  113. * 32 bits : log_recovery code assumes that.
  114. */
  115. typedef struct xfs_dq_logformat {
  116. __uint16_t qlf_type; /* dquot log item type */
  117. __uint16_t qlf_size; /* size of this item */
  118. xfs_dqid_t qlf_id; /* usr/grp/proj id : 32 bits */
  119. __int64_t qlf_blkno; /* blkno of dquot buffer */
  120. __int32_t qlf_len; /* len of dquot buffer */
  121. __uint32_t qlf_boffset; /* off of dquot in buffer */
  122. } xfs_dq_logformat_t;
  123. /*
  124. * log format struct for QUOTAOFF records.
  125. * The first two fields must be the type and size fitting into
  126. * 32 bits : log_recovery code assumes that.
  127. * We write two LI_QUOTAOFF logitems per quotaoff, the last one keeps a pointer
  128. * to the first and ensures that the first logitem is taken out of the AIL
  129. * only when the last one is securely committed.
  130. */
  131. typedef struct xfs_qoff_logformat {
  132. unsigned short qf_type; /* quotaoff log item type */
  133. unsigned short qf_size; /* size of this item */
  134. unsigned int qf_flags; /* USR and/or GRP */
  135. char qf_pad[12]; /* padding for future */
  136. } xfs_qoff_logformat_t;
  137. /*
  138. * Disk quotas status in m_qflags, and also sb_qflags. 16 bits.
  139. */
  140. #define XFS_UQUOTA_ACCT 0x0001 /* user quota accounting ON */
  141. #define XFS_UQUOTA_ENFD 0x0002 /* user quota limits enforced */
  142. #define XFS_UQUOTA_CHKD 0x0004 /* quotacheck run on usr quotas */
  143. #define XFS_PQUOTA_ACCT 0x0008 /* project quota accounting ON */
  144. #define XFS_OQUOTA_ENFD 0x0010 /* other (grp/prj) quota limits enforced */
  145. #define XFS_OQUOTA_CHKD 0x0020 /* quotacheck run on other (grp/prj) quotas */
  146. #define XFS_GQUOTA_ACCT 0x0040 /* group quota accounting ON */
  147. /*
  148. * Quota Accounting/Enforcement flags
  149. */
  150. #define XFS_ALL_QUOTA_ACCT \
  151. (XFS_UQUOTA_ACCT | XFS_GQUOTA_ACCT | XFS_PQUOTA_ACCT)
  152. #define XFS_ALL_QUOTA_ENFD (XFS_UQUOTA_ENFD | XFS_OQUOTA_ENFD)
  153. #define XFS_ALL_QUOTA_CHKD (XFS_UQUOTA_CHKD | XFS_OQUOTA_CHKD)
  154. #define XFS_IS_QUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_ALL_QUOTA_ACCT)
  155. #define XFS_IS_QUOTA_ENFORCED(mp) ((mp)->m_qflags & XFS_ALL_QUOTA_ENFD)
  156. #define XFS_IS_UQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_UQUOTA_ACCT)
  157. #define XFS_IS_PQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_PQUOTA_ACCT)
  158. #define XFS_IS_GQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_GQUOTA_ACCT)
  159. /*
  160. * Incore only flags for quotaoff - these bits get cleared when quota(s)
  161. * are in the process of getting turned off. These flags are in m_qflags but
  162. * never in sb_qflags.
  163. */
  164. #define XFS_UQUOTA_ACTIVE 0x0100 /* uquotas are being turned off */
  165. #define XFS_PQUOTA_ACTIVE 0x0200 /* pquotas are being turned off */
  166. #define XFS_GQUOTA_ACTIVE 0x0400 /* gquotas are being turned off */
  167. /*
  168. * Checking XFS_IS_*QUOTA_ON() while holding any inode lock guarantees
  169. * quota will be not be switched off as long as that inode lock is held.
  170. */
  171. #define XFS_IS_QUOTA_ON(mp) ((mp)->m_qflags & (XFS_UQUOTA_ACTIVE | \
  172. XFS_GQUOTA_ACTIVE | \
  173. XFS_PQUOTA_ACTIVE))
  174. #define XFS_IS_OQUOTA_ON(mp) ((mp)->m_qflags & (XFS_GQUOTA_ACTIVE | \
  175. XFS_PQUOTA_ACTIVE))
  176. #define XFS_IS_UQUOTA_ON(mp) ((mp)->m_qflags & XFS_UQUOTA_ACTIVE)
  177. #define XFS_IS_GQUOTA_ON(mp) ((mp)->m_qflags & XFS_GQUOTA_ACTIVE)
  178. #define XFS_IS_PQUOTA_ON(mp) ((mp)->m_qflags & XFS_PQUOTA_ACTIVE)
  179. /*
  180. * Flags to tell various functions what to do. Not all of these are meaningful
  181. * to a single function. None of these XFS_QMOPT_* flags are meant to have
  182. * persistent values (ie. their values can and will change between versions)
  183. */
  184. #define XFS_QMOPT_DQLOCK 0x0000001 /* dqlock */
  185. #define XFS_QMOPT_DQALLOC 0x0000002 /* alloc dquot ondisk if needed */
  186. #define XFS_QMOPT_UQUOTA 0x0000004 /* user dquot requested */
  187. #define XFS_QMOPT_PQUOTA 0x0000008 /* project dquot requested */
  188. #define XFS_QMOPT_FORCE_RES 0x0000010 /* ignore quota limits */
  189. #define XFS_QMOPT_DQSUSER 0x0000020 /* don't cache super users dquot */
  190. #define XFS_QMOPT_SBVERSION 0x0000040 /* change superblock version num */
  191. #define XFS_QMOPT_QUOTAOFF 0x0000080 /* quotas are being turned off */
  192. #define XFS_QMOPT_UMOUNTING 0x0000100 /* filesys is being unmounted */
  193. #define XFS_QMOPT_DOLOG 0x0000200 /* log buf changes (in quotacheck) */
  194. #define XFS_QMOPT_DOWARN 0x0000400 /* increase warning cnt if necessary */
  195. #define XFS_QMOPT_ILOCKED 0x0000800 /* inode is already locked (excl) */
  196. #define XFS_QMOPT_DQREPAIR 0x0001000 /* repair dquot, if damaged. */
  197. #define XFS_QMOPT_GQUOTA 0x0002000 /* group dquot requested */
  198. /*
  199. * flags to xfs_trans_mod_dquot to indicate which field needs to be
  200. * modified.
  201. */
  202. #define XFS_QMOPT_RES_REGBLKS 0x0010000
  203. #define XFS_QMOPT_RES_RTBLKS 0x0020000
  204. #define XFS_QMOPT_BCOUNT 0x0040000
  205. #define XFS_QMOPT_ICOUNT 0x0080000
  206. #define XFS_QMOPT_RTBCOUNT 0x0100000
  207. #define XFS_QMOPT_DELBCOUNT 0x0200000
  208. #define XFS_QMOPT_DELRTBCOUNT 0x0400000
  209. #define XFS_QMOPT_RES_INOS 0x0800000
  210. /*
  211. * flags for dqflush and dqflush_all.
  212. */
  213. #define XFS_QMOPT_SYNC 0x1000000
  214. #define XFS_QMOPT_ASYNC 0x2000000
  215. #define XFS_QMOPT_DELWRI 0x4000000
  216. /*
  217. * flags for dqalloc.
  218. */
  219. #define XFS_QMOPT_INHERIT 0x8000000
  220. /*
  221. * flags to xfs_trans_mod_dquot.
  222. */
  223. #define XFS_TRANS_DQ_RES_BLKS XFS_QMOPT_RES_REGBLKS
  224. #define XFS_TRANS_DQ_RES_RTBLKS XFS_QMOPT_RES_RTBLKS
  225. #define XFS_TRANS_DQ_RES_INOS XFS_QMOPT_RES_INOS
  226. #define XFS_TRANS_DQ_BCOUNT XFS_QMOPT_BCOUNT
  227. #define XFS_TRANS_DQ_DELBCOUNT XFS_QMOPT_DELBCOUNT
  228. #define XFS_TRANS_DQ_ICOUNT XFS_QMOPT_ICOUNT
  229. #define XFS_TRANS_DQ_RTBCOUNT XFS_QMOPT_RTBCOUNT
  230. #define XFS_TRANS_DQ_DELRTBCOUNT XFS_QMOPT_DELRTBCOUNT
  231. #define XFS_QMOPT_QUOTALL \
  232. (XFS_QMOPT_UQUOTA | XFS_QMOPT_PQUOTA | XFS_QMOPT_GQUOTA)
  233. #define XFS_QMOPT_RESBLK_MASK (XFS_QMOPT_RES_REGBLKS | XFS_QMOPT_RES_RTBLKS)
  234. #ifdef __KERNEL__
  235. /*
  236. * This check is done typically without holding the inode lock;
  237. * that may seem racey, but it is harmless in the context that it is used.
  238. * The inode cannot go inactive as long a reference is kept, and
  239. * therefore if dquot(s) were attached, they'll stay consistent.
  240. * If, for example, the ownership of the inode changes while
  241. * we didn't have the inode locked, the appropriate dquot(s) will be
  242. * attached atomically.
  243. */
  244. #define XFS_NOT_DQATTACHED(mp, ip) ((XFS_IS_UQUOTA_ON(mp) &&\
  245. (ip)->i_udquot == NULL) || \
  246. (XFS_IS_OQUOTA_ON(mp) && \
  247. (ip)->i_gdquot == NULL))
  248. #define XFS_QM_NEED_QUOTACHECK(mp) \
  249. ((XFS_IS_UQUOTA_ON(mp) && \
  250. (mp->m_sb.sb_qflags & XFS_UQUOTA_CHKD) == 0) || \
  251. (XFS_IS_GQUOTA_ON(mp) && \
  252. ((mp->m_sb.sb_qflags & XFS_OQUOTA_CHKD) == 0 || \
  253. (mp->m_sb.sb_qflags & XFS_PQUOTA_ACCT))) || \
  254. (XFS_IS_PQUOTA_ON(mp) && \
  255. ((mp->m_sb.sb_qflags & XFS_OQUOTA_CHKD) == 0 || \
  256. (mp->m_sb.sb_qflags & XFS_GQUOTA_ACCT))))
  257. #define XFS_MOUNT_QUOTA_SET1 (XFS_UQUOTA_ACCT|XFS_UQUOTA_ENFD|\
  258. XFS_UQUOTA_CHKD|XFS_PQUOTA_ACCT|\
  259. XFS_OQUOTA_ENFD|XFS_OQUOTA_CHKD)
  260. #define XFS_MOUNT_QUOTA_SET2 (XFS_UQUOTA_ACCT|XFS_UQUOTA_ENFD|\
  261. XFS_UQUOTA_CHKD|XFS_GQUOTA_ACCT|\
  262. XFS_OQUOTA_ENFD|XFS_OQUOTA_CHKD)
  263. #define XFS_MOUNT_QUOTA_ALL (XFS_UQUOTA_ACCT|XFS_UQUOTA_ENFD|\
  264. XFS_UQUOTA_CHKD|XFS_PQUOTA_ACCT|\
  265. XFS_OQUOTA_ENFD|XFS_OQUOTA_CHKD|\
  266. XFS_GQUOTA_ACCT)
  267. #define XFS_MOUNT_QUOTA_MASK (XFS_MOUNT_QUOTA_ALL | XFS_UQUOTA_ACTIVE | \
  268. XFS_GQUOTA_ACTIVE | XFS_PQUOTA_ACTIVE)
  269. /*
  270. * The structure kept inside the xfs_trans_t keep track of dquot changes
  271. * within a transaction and apply them later.
  272. */
  273. typedef struct xfs_dqtrx {
  274. struct xfs_dquot *qt_dquot; /* the dquot this refers to */
  275. ulong qt_blk_res; /* blks reserved on a dquot */
  276. ulong qt_blk_res_used; /* blks used from the reservation */
  277. ulong qt_ino_res; /* inode reserved on a dquot */
  278. ulong qt_ino_res_used; /* inodes used from the reservation */
  279. long qt_bcount_delta; /* dquot blk count changes */
  280. long qt_delbcnt_delta; /* delayed dquot blk count changes */
  281. long qt_icount_delta; /* dquot inode count changes */
  282. ulong qt_rtblk_res; /* # blks reserved on a dquot */
  283. ulong qt_rtblk_res_used;/* # blks used from reservation */
  284. long qt_rtbcount_delta;/* dquot realtime blk changes */
  285. long qt_delrtb_delta; /* delayed RT blk count changes */
  286. } xfs_dqtrx_t;
  287. /*
  288. * Dquot transaction functions, used if quota is enabled.
  289. */
  290. typedef void (*qo_dup_dqinfo_t)(struct xfs_trans *, struct xfs_trans *);
  291. typedef void (*qo_mod_dquot_byino_t)(struct xfs_trans *,
  292. struct xfs_inode *, uint, long);
  293. typedef void (*qo_free_dqinfo_t)(struct xfs_trans *);
  294. typedef void (*qo_apply_dquot_deltas_t)(struct xfs_trans *);
  295. typedef void (*qo_unreserve_and_mod_dquots_t)(struct xfs_trans *);
  296. typedef int (*qo_reserve_quota_nblks_t)(
  297. struct xfs_trans *, struct xfs_mount *,
  298. struct xfs_inode *, long, long, uint);
  299. typedef int (*qo_reserve_quota_bydquots_t)(
  300. struct xfs_trans *, struct xfs_mount *,
  301. struct xfs_dquot *, struct xfs_dquot *,
  302. long, long, uint);
  303. typedef struct xfs_dqtrxops {
  304. qo_dup_dqinfo_t qo_dup_dqinfo;
  305. qo_free_dqinfo_t qo_free_dqinfo;
  306. qo_mod_dquot_byino_t qo_mod_dquot_byino;
  307. qo_apply_dquot_deltas_t qo_apply_dquot_deltas;
  308. qo_reserve_quota_nblks_t qo_reserve_quota_nblks;
  309. qo_reserve_quota_bydquots_t qo_reserve_quota_bydquots;
  310. qo_unreserve_and_mod_dquots_t qo_unreserve_and_mod_dquots;
  311. } xfs_dqtrxops_t;
  312. #define XFS_DQTRXOP(mp, tp, op, args...) \
  313. ((mp)->m_qm_ops.xfs_dqtrxops ? \
  314. ((mp)->m_qm_ops.xfs_dqtrxops->op)(tp, ## args) : 0)
  315. #define XFS_DQTRXOP_VOID(mp, tp, op, args...) \
  316. ((mp)->m_qm_ops.xfs_dqtrxops ? \
  317. ((mp)->m_qm_ops.xfs_dqtrxops->op)(tp, ## args) : (void)0)
  318. #define XFS_TRANS_DUP_DQINFO(mp, otp, ntp) \
  319. XFS_DQTRXOP_VOID(mp, otp, qo_dup_dqinfo, ntp)
  320. #define XFS_TRANS_FREE_DQINFO(mp, tp) \
  321. XFS_DQTRXOP_VOID(mp, tp, qo_free_dqinfo)
  322. #define XFS_TRANS_MOD_DQUOT_BYINO(mp, tp, ip, field, delta) \
  323. XFS_DQTRXOP_VOID(mp, tp, qo_mod_dquot_byino, ip, field, delta)
  324. #define XFS_TRANS_APPLY_DQUOT_DELTAS(mp, tp) \
  325. XFS_DQTRXOP_VOID(mp, tp, qo_apply_dquot_deltas)
  326. #define XFS_TRANS_RESERVE_QUOTA_NBLKS(mp, tp, ip, nblks, ninos, fl) \
  327. XFS_DQTRXOP(mp, tp, qo_reserve_quota_nblks, mp, ip, nblks, ninos, fl)
  328. #define XFS_TRANS_RESERVE_QUOTA_BYDQUOTS(mp, tp, ud, gd, nb, ni, fl) \
  329. XFS_DQTRXOP(mp, tp, qo_reserve_quota_bydquots, mp, ud, gd, nb, ni, fl)
  330. #define XFS_TRANS_UNRESERVE_AND_MOD_DQUOTS(mp, tp) \
  331. XFS_DQTRXOP_VOID(mp, tp, qo_unreserve_and_mod_dquots)
  332. #define XFS_TRANS_UNRESERVE_QUOTA_NBLKS(mp, tp, ip, nblks, ninos, flags) \
  333. XFS_TRANS_RESERVE_QUOTA_NBLKS(mp, tp, ip, -(nblks), -(ninos), flags)
  334. #define XFS_TRANS_RESERVE_QUOTA(mp, tp, ud, gd, nb, ni, f) \
  335. XFS_TRANS_RESERVE_QUOTA_BYDQUOTS(mp, tp, ud, gd, nb, ni, \
  336. f | XFS_QMOPT_RES_REGBLKS)
  337. #define XFS_TRANS_UNRESERVE_QUOTA(mp, tp, ud, gd, nb, ni, f) \
  338. XFS_TRANS_RESERVE_QUOTA_BYDQUOTS(mp, tp, ud, gd, -(nb), -(ni), \
  339. f | XFS_QMOPT_RES_REGBLKS)
  340. extern int xfs_qm_dqcheck(xfs_disk_dquot_t *, xfs_dqid_t, uint, uint, char *);
  341. extern int xfs_mount_reset_sbqflags(struct xfs_mount *);
  342. extern struct bhv_vfsops xfs_qmops;
  343. #endif /* __KERNEL__ */
  344. #endif /* __XFS_QUOTA_H__ */