Commit 078f4a7d authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: kill the xfs_dqtrx_t typedef

There's only a few uses left, so just kill the typedef while we're at
it.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent 394aafdc
...@@ -56,7 +56,7 @@ xfs_quota_chkd_flag( ...@@ -56,7 +56,7 @@ xfs_quota_chkd_flag(
* The structure kept inside the xfs_trans_t keep track of dquot changes * The structure kept inside the xfs_trans_t keep track of dquot changes
* within a transaction and apply them later. * within a transaction and apply them later.
*/ */
typedef struct xfs_dqtrx { struct xfs_dqtrx {
struct xfs_dquot *qt_dquot; /* the dquot this refers to */ struct xfs_dquot *qt_dquot; /* the dquot this refers to */
uint64_t qt_blk_res; /* blks reserved on a dquot */ uint64_t qt_blk_res; /* blks reserved on a dquot */
...@@ -71,7 +71,7 @@ typedef struct xfs_dqtrx { ...@@ -71,7 +71,7 @@ typedef struct xfs_dqtrx {
uint64_t qt_ino_res; /* inode reserved on a dquot */ uint64_t qt_ino_res; /* inode reserved on a dquot */
uint64_t qt_ino_res_used; /* inodes used from the reservation */ uint64_t qt_ino_res_used; /* inodes used from the reservation */
int64_t qt_icount_delta; /* dquot inode count changes */ int64_t qt_icount_delta; /* dquot inode count changes */
} xfs_dqtrx_t; };
#ifdef CONFIG_XFS_QUOTA #ifdef CONFIG_XFS_QUOTA
extern void xfs_trans_dup_dqinfo(struct xfs_trans *, struct xfs_trans *); extern void xfs_trans_dup_dqinfo(struct xfs_trans *, struct xfs_trans *);
......
...@@ -74,12 +74,12 @@ xfs_trans_log_dquot( ...@@ -74,12 +74,12 @@ xfs_trans_log_dquot(
*/ */
void void
xfs_trans_dup_dqinfo( xfs_trans_dup_dqinfo(
xfs_trans_t *otp, struct xfs_trans *otp,
xfs_trans_t *ntp) struct xfs_trans *ntp)
{ {
xfs_dqtrx_t *oq, *nq; struct xfs_dqtrx *oq, *nq;
int i, j; int i, j;
xfs_dqtrx_t *oqa, *nqa; struct xfs_dqtrx *oqa, *nqa;
uint64_t blk_res_used; uint64_t blk_res_used;
if (!otp->t_dqinfo) if (!otp->t_dqinfo)
...@@ -191,12 +191,12 @@ xfs_trans_get_dqtrx( ...@@ -191,12 +191,12 @@ xfs_trans_get_dqtrx(
*/ */
void void
xfs_trans_mod_dquot( xfs_trans_mod_dquot(
xfs_trans_t *tp, struct xfs_trans *tp,
xfs_dquot_t *dqp, struct xfs_dquot *dqp,
uint field, uint field,
int64_t delta) int64_t delta)
{ {
xfs_dqtrx_t *qtrx; struct xfs_dqtrx *qtrx;
ASSERT(tp); ASSERT(tp);
ASSERT(XFS_IS_QUOTA_RUNNING(tp->t_mountp)); ASSERT(XFS_IS_QUOTA_RUNNING(tp->t_mountp));
...@@ -288,8 +288,8 @@ xfs_trans_mod_dquot( ...@@ -288,8 +288,8 @@ xfs_trans_mod_dquot(
*/ */
STATIC void STATIC void
xfs_trans_dqlockedjoin( xfs_trans_dqlockedjoin(
xfs_trans_t *tp, struct xfs_trans *tp,
xfs_dqtrx_t *q) struct xfs_dqtrx *q)
{ {
ASSERT(q[0].qt_dquot != NULL); ASSERT(q[0].qt_dquot != NULL);
if (q[1].qt_dquot == NULL) { if (q[1].qt_dquot == NULL) {
...@@ -501,7 +501,7 @@ xfs_trans_unreserve_and_mod_dquots( ...@@ -501,7 +501,7 @@ xfs_trans_unreserve_and_mod_dquots(
{ {
int i, j; int i, j;
xfs_dquot_t *dqp; xfs_dquot_t *dqp;
xfs_dqtrx_t *qtrx, *qa; struct xfs_dqtrx *qtrx, *qa;
bool locked; bool locked;
if (!tp->t_dqinfo || !(tp->t_flags & XFS_TRANS_DQ_DIRTY)) if (!tp->t_dqinfo || !(tp->t_flags & XFS_TRANS_DQ_DIRTY))
......
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