Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Pavel Reichl and committed by
Darrick J. Wong
c072fbef aefe69a4

+14 -14
+10 -10
fs/xfs/xfs_qm.c
··· 30 30 * quota functionality, including maintaining the freelist and hash 31 31 * tables of dquots. 32 32 */ 33 - STATIC int xfs_qm_init_quotainos(xfs_mount_t *); 34 - STATIC int xfs_qm_init_quotainfo(xfs_mount_t *); 33 + STATIC int xfs_qm_init_quotainos(struct xfs_mount *mp); 34 + STATIC int xfs_qm_init_quotainfo(struct xfs_mount *mp); 35 35 36 - STATIC void xfs_qm_destroy_quotainos(xfs_quotainfo_t *qi); 36 + STATIC void xfs_qm_destroy_quotainos(struct xfs_quotainfo *qi); 37 37 STATIC void xfs_qm_dqfree_one(struct xfs_dquot *dqp); 38 38 /* 39 39 * We use the batch lookup interface to iterate over the dquots as it ··· 540 540 541 541 STATIC void 542 542 xfs_qm_set_defquota( 543 - xfs_mount_t *mp, 544 - uint type, 545 - xfs_quotainfo_t *qinf) 543 + struct xfs_mount *mp, 544 + uint type, 545 + struct xfs_quotainfo *qinf) 546 546 { 547 547 struct xfs_dquot *dqp; 548 548 struct xfs_def_quota *defq; ··· 643 643 644 644 ASSERT(XFS_IS_QUOTA_RUNNING(mp)); 645 645 646 - qinf = mp->m_quotainfo = kmem_zalloc(sizeof(xfs_quotainfo_t), 0); 646 + qinf = mp->m_quotainfo = kmem_zalloc(sizeof(struct xfs_quotainfo), 0); 647 647 648 648 error = list_lru_init(&qinf->qi_lru); 649 649 if (error) ··· 710 710 */ 711 711 void 712 712 xfs_qm_destroy_quotainfo( 713 - xfs_mount_t *mp) 713 + struct xfs_mount *mp) 714 714 { 715 - xfs_quotainfo_t *qi; 715 + struct xfs_quotainfo *qi; 716 716 717 717 qi = mp->m_quotainfo; 718 718 ASSERT(qi != NULL); ··· 1564 1564 1565 1565 STATIC void 1566 1566 xfs_qm_destroy_quotainos( 1567 - xfs_quotainfo_t *qi) 1567 + struct xfs_quotainfo *qi) 1568 1568 { 1569 1569 if (qi->qi_uquotaip) { 1570 1570 xfs_irele(qi->qi_uquotaip);
+3 -3
fs/xfs/xfs_qm.h
··· 54 54 * Various quota information for individual filesystems. 55 55 * The mount structure keeps a pointer to this. 56 56 */ 57 - typedef struct xfs_quotainfo { 57 + struct xfs_quotainfo { 58 58 struct radix_tree_root qi_uquota_tree; 59 59 struct radix_tree_root qi_gquota_tree; 60 60 struct radix_tree_root qi_pquota_tree; ··· 76 76 struct xfs_def_quota qi_usr_default; 77 77 struct xfs_def_quota qi_grp_default; 78 78 struct xfs_def_quota qi_prj_default; 79 - struct shrinker qi_shrinker; 80 - } xfs_quotainfo_t; 79 + struct shrinker qi_shrinker; 80 + }; 81 81 82 82 static inline struct radix_tree_root * 83 83 xfs_dquot_tree(
+1 -1
fs/xfs/xfs_trans_dquot.c
··· 585 585 xfs_qwarncnt_t warnlimit; 586 586 xfs_qcnt_t total_count; 587 587 xfs_qcnt_t *resbcountp; 588 - xfs_quotainfo_t *q = mp->m_quotainfo; 588 + struct xfs_quotainfo *q = mp->m_quotainfo; 589 589 struct xfs_def_quota *defq; 590 590 591 591