mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-31 19:45:21 +00:00
xfs: remove the xfs_quotainfo_t typedef
Signed-off-by: Pavel Reichl <preichl@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
parent
aefe69a45d
commit
c072fbefe4
3 changed files with 14 additions and 14 deletions
|
@ -30,10 +30,10 @@
|
||||||
* quota functionality, including maintaining the freelist and hash
|
* quota functionality, including maintaining the freelist and hash
|
||||||
* tables of dquots.
|
* tables of dquots.
|
||||||
*/
|
*/
|
||||||
STATIC int xfs_qm_init_quotainos(xfs_mount_t *);
|
STATIC int xfs_qm_init_quotainos(struct xfs_mount *mp);
|
||||||
STATIC int xfs_qm_init_quotainfo(xfs_mount_t *);
|
STATIC int xfs_qm_init_quotainfo(struct xfs_mount *mp);
|
||||||
|
|
||||||
STATIC void xfs_qm_destroy_quotainos(xfs_quotainfo_t *qi);
|
STATIC void xfs_qm_destroy_quotainos(struct xfs_quotainfo *qi);
|
||||||
STATIC void xfs_qm_dqfree_one(struct xfs_dquot *dqp);
|
STATIC void xfs_qm_dqfree_one(struct xfs_dquot *dqp);
|
||||||
/*
|
/*
|
||||||
* We use the batch lookup interface to iterate over the dquots as it
|
* We use the batch lookup interface to iterate over the dquots as it
|
||||||
|
@ -540,9 +540,9 @@ xfs_qm_shrink_count(
|
||||||
|
|
||||||
STATIC void
|
STATIC void
|
||||||
xfs_qm_set_defquota(
|
xfs_qm_set_defquota(
|
||||||
xfs_mount_t *mp,
|
struct xfs_mount *mp,
|
||||||
uint type,
|
uint type,
|
||||||
xfs_quotainfo_t *qinf)
|
struct xfs_quotainfo *qinf)
|
||||||
{
|
{
|
||||||
struct xfs_dquot *dqp;
|
struct xfs_dquot *dqp;
|
||||||
struct xfs_def_quota *defq;
|
struct xfs_def_quota *defq;
|
||||||
|
@ -643,7 +643,7 @@ xfs_qm_init_quotainfo(
|
||||||
|
|
||||||
ASSERT(XFS_IS_QUOTA_RUNNING(mp));
|
ASSERT(XFS_IS_QUOTA_RUNNING(mp));
|
||||||
|
|
||||||
qinf = mp->m_quotainfo = kmem_zalloc(sizeof(xfs_quotainfo_t), 0);
|
qinf = mp->m_quotainfo = kmem_zalloc(sizeof(struct xfs_quotainfo), 0);
|
||||||
|
|
||||||
error = list_lru_init(&qinf->qi_lru);
|
error = list_lru_init(&qinf->qi_lru);
|
||||||
if (error)
|
if (error)
|
||||||
|
@ -710,9 +710,9 @@ out_free_qinf:
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
xfs_qm_destroy_quotainfo(
|
xfs_qm_destroy_quotainfo(
|
||||||
xfs_mount_t *mp)
|
struct xfs_mount *mp)
|
||||||
{
|
{
|
||||||
xfs_quotainfo_t *qi;
|
struct xfs_quotainfo *qi;
|
||||||
|
|
||||||
qi = mp->m_quotainfo;
|
qi = mp->m_quotainfo;
|
||||||
ASSERT(qi != NULL);
|
ASSERT(qi != NULL);
|
||||||
|
@ -1564,7 +1564,7 @@ error_rele:
|
||||||
|
|
||||||
STATIC void
|
STATIC void
|
||||||
xfs_qm_destroy_quotainos(
|
xfs_qm_destroy_quotainos(
|
||||||
xfs_quotainfo_t *qi)
|
struct xfs_quotainfo *qi)
|
||||||
{
|
{
|
||||||
if (qi->qi_uquotaip) {
|
if (qi->qi_uquotaip) {
|
||||||
xfs_irele(qi->qi_uquotaip);
|
xfs_irele(qi->qi_uquotaip);
|
||||||
|
|
|
@ -54,7 +54,7 @@ struct xfs_def_quota {
|
||||||
* Various quota information for individual filesystems.
|
* Various quota information for individual filesystems.
|
||||||
* The mount structure keeps a pointer to this.
|
* The mount structure keeps a pointer to this.
|
||||||
*/
|
*/
|
||||||
typedef struct xfs_quotainfo {
|
struct xfs_quotainfo {
|
||||||
struct radix_tree_root qi_uquota_tree;
|
struct radix_tree_root qi_uquota_tree;
|
||||||
struct radix_tree_root qi_gquota_tree;
|
struct radix_tree_root qi_gquota_tree;
|
||||||
struct radix_tree_root qi_pquota_tree;
|
struct radix_tree_root qi_pquota_tree;
|
||||||
|
@ -76,8 +76,8 @@ typedef struct xfs_quotainfo {
|
||||||
struct xfs_def_quota qi_usr_default;
|
struct xfs_def_quota qi_usr_default;
|
||||||
struct xfs_def_quota qi_grp_default;
|
struct xfs_def_quota qi_grp_default;
|
||||||
struct xfs_def_quota qi_prj_default;
|
struct xfs_def_quota qi_prj_default;
|
||||||
struct shrinker qi_shrinker;
|
struct shrinker qi_shrinker;
|
||||||
} xfs_quotainfo_t;
|
};
|
||||||
|
|
||||||
static inline struct radix_tree_root *
|
static inline struct radix_tree_root *
|
||||||
xfs_dquot_tree(
|
xfs_dquot_tree(
|
||||||
|
|
|
@ -585,7 +585,7 @@ xfs_trans_dqresv(
|
||||||
xfs_qwarncnt_t warnlimit;
|
xfs_qwarncnt_t warnlimit;
|
||||||
xfs_qcnt_t total_count;
|
xfs_qcnt_t total_count;
|
||||||
xfs_qcnt_t *resbcountp;
|
xfs_qcnt_t *resbcountp;
|
||||||
xfs_quotainfo_t *q = mp->m_quotainfo;
|
struct xfs_quotainfo *q = mp->m_quotainfo;
|
||||||
struct xfs_def_quota *defq;
|
struct xfs_def_quota *defq;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue