Commit 50920116 authored by Dave Chinner's avatar Dave Chinner Committed by Dave Chinner

xfs: remove xfs_perag_t

Almost unused, gets rid of another typedef.
Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
parent f40aadb2
...@@ -108,8 +108,8 @@ xfs_initialize_perag_data( ...@@ -108,8 +108,8 @@ xfs_initialize_perag_data(
xfs_agnumber_t agcount) xfs_agnumber_t agcount)
{ {
xfs_agnumber_t index; xfs_agnumber_t index;
xfs_perag_t *pag; struct xfs_perag *pag;
xfs_sb_t *sbp = &mp->m_sb; struct xfs_sb *sbp = &mp->m_sb;
uint64_t ifree = 0; uint64_t ifree = 0;
uint64_t ialloc = 0; uint64_t ialloc = 0;
uint64_t bfree = 0; uint64_t bfree = 0;
......
...@@ -29,7 +29,7 @@ struct xfs_ag_resv { ...@@ -29,7 +29,7 @@ struct xfs_ag_resv {
* Per-ag incore structure, copies of information in agf and agi, to improve the * Per-ag incore structure, copies of information in agf and agi, to improve the
* performance of allocation group selection. * performance of allocation group selection.
*/ */
typedef struct xfs_perag { struct xfs_perag {
struct xfs_mount *pag_mount; /* owner filesystem */ struct xfs_mount *pag_mount; /* owner filesystem */
xfs_agnumber_t pag_agno; /* AG this structure belongs to */ xfs_agnumber_t pag_agno; /* AG this structure belongs to */
atomic_t pag_ref; /* perag reference count */ atomic_t pag_ref; /* perag reference count */
...@@ -102,7 +102,7 @@ typedef struct xfs_perag { ...@@ -102,7 +102,7 @@ typedef struct xfs_perag {
* or have some other means to control concurrency. * or have some other means to control concurrency.
*/ */
struct rhashtable pagi_unlinked_hash; struct rhashtable pagi_unlinked_hash;
} xfs_perag_t; };
int xfs_initialize_perag(struct xfs_mount *mp, xfs_agnumber_t agcount, int xfs_initialize_perag(struct xfs_mount *mp, xfs_agnumber_t agcount,
xfs_agnumber_t *maxagi); xfs_agnumber_t *maxagi);
......
...@@ -2694,21 +2694,21 @@ xfs_alloc_fix_freelist( ...@@ -2694,21 +2694,21 @@ xfs_alloc_fix_freelist(
* Get a block from the freelist. * Get a block from the freelist.
* Returns with the buffer for the block gotten. * Returns with the buffer for the block gotten.
*/ */
int /* error */ int
xfs_alloc_get_freelist( xfs_alloc_get_freelist(
xfs_trans_t *tp, /* transaction pointer */ struct xfs_trans *tp,
struct xfs_buf *agbp, /* buffer containing the agf structure */ struct xfs_buf *agbp,
xfs_agblock_t *bnop, /* block address retrieved from freelist */ xfs_agblock_t *bnop,
int btreeblk) /* destination is a AGF btree */ int btreeblk)
{ {
struct xfs_agf *agf = agbp->b_addr; struct xfs_agf *agf = agbp->b_addr;
struct xfs_buf *agflbp;/* buffer for a.g. freelist structure */ struct xfs_buf *agflbp;
xfs_agblock_t bno; /* block number returned */ xfs_agblock_t bno;
__be32 *agfl_bno; __be32 *agfl_bno;
int error; int error;
int logflags; int logflags;
xfs_mount_t *mp = tp->t_mountp; struct xfs_mount *mp = tp->t_mountp;
xfs_perag_t *pag; /* per allocation group data */ struct xfs_perag *pag;
/* /*
* Freelist is empty, give up. * Freelist is empty, give up.
...@@ -2818,20 +2818,20 @@ xfs_alloc_pagf_init( ...@@ -2818,20 +2818,20 @@ xfs_alloc_pagf_init(
/* /*
* Put the block on the freelist for the allocation group. * Put the block on the freelist for the allocation group.
*/ */
int /* error */ int
xfs_alloc_put_freelist( xfs_alloc_put_freelist(
xfs_trans_t *tp, /* transaction pointer */ struct xfs_trans *tp,
struct xfs_buf *agbp, /* buffer for a.g. freelist header */ struct xfs_buf *agbp,
struct xfs_buf *agflbp,/* buffer for a.g. free block array */ struct xfs_buf *agflbp,
xfs_agblock_t bno, /* block being freed */ xfs_agblock_t bno,
int btreeblk) /* block came from a AGF btree */ int btreeblk)
{ {
struct xfs_mount *mp = tp->t_mountp; struct xfs_mount *mp = tp->t_mountp;
struct xfs_agf *agf = agbp->b_addr; struct xfs_agf *agf = agbp->b_addr;
__be32 *blockp;/* pointer to array entry */ struct xfs_perag *pag;
__be32 *blockp;
int error; int error;
int logflags; int logflags;
xfs_perag_t *pag; /* per allocation group data */
__be32 *agfl_bno; __be32 *agfl_bno;
int startoff; int startoff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment