#ifndef __XFS_QM_H__
#define __XFS_QM_H__
#include "xfs_dquot_item.h"
#include "xfs_dquot.h"
struct xfs_inode;
extern struct kmem_cache *xfs_dqtrx_cache;
#define XFS_DQITER_MAP_SIZE …
#define XFS_IS_DQUOT_UNINITIALIZED(dqp) …
struct xfs_quota_limits { … };
struct xfs_def_quota { … };
struct xfs_quotainfo { … };
static inline struct radix_tree_root *
xfs_dquot_tree(
struct xfs_quotainfo *qi,
xfs_dqtype_t type)
{ … }
static inline struct xfs_inode *
xfs_quota_inode(struct xfs_mount *mp, xfs_dqtype_t type)
{ … }
struct xfs_mod_ino_dqtrx_params { … };
extern void xfs_trans_mod_dquot(struct xfs_trans *tp, struct xfs_dquot *dqp,
uint field, int64_t delta);
extern void xfs_trans_dqjoin(struct xfs_trans *, struct xfs_dquot *);
extern void xfs_trans_log_dquot(struct xfs_trans *, struct xfs_dquot *);
enum { … };
#define XFS_QM_TRANS_MAXDQS …
struct xfs_dquot_acct { … };
#define XFS_QM_BTIMELIMIT …
#define XFS_QM_RTBTIMELIMIT …
#define XFS_QM_ITIMELIMIT …
extern void xfs_qm_destroy_quotainfo(struct xfs_mount *);
extern int xfs_qm_scall_trunc_qfiles(struct xfs_mount *, uint);
extern int xfs_qm_scall_getquota(struct xfs_mount *mp,
xfs_dqid_t id,
xfs_dqtype_t type,
struct qc_dqblk *dst);
extern int xfs_qm_scall_getquota_next(struct xfs_mount *mp,
xfs_dqid_t *id,
xfs_dqtype_t type,
struct qc_dqblk *dst);
extern int xfs_qm_scall_setqlim(struct xfs_mount *mp,
xfs_dqid_t id,
xfs_dqtype_t type,
struct qc_dqblk *newlim);
extern int xfs_qm_scall_quotaon(struct xfs_mount *, uint);
extern int xfs_qm_scall_quotaoff(struct xfs_mount *, uint);
static inline struct xfs_def_quota *
xfs_get_defquota(struct xfs_quotainfo *qi, xfs_dqtype_t type)
{ … }
#endif