Commit bba61cbf authored by Darrick J. Wong's avatar Darrick J. Wong Committed by Dave Chinner

xfs: clean up typedef usage in the EFI/EFD handling code

Replace structure typedefs with struct xfs_foo_* in the EFI/EFD
handling code in preparation to move it over to deferred ops.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent 3cd48abc
...@@ -210,12 +210,12 @@ void xfs_trans_ichgtime(struct xfs_trans *, struct xfs_inode *, int); ...@@ -210,12 +210,12 @@ void xfs_trans_ichgtime(struct xfs_trans *, struct xfs_inode *, int);
void xfs_trans_ijoin(struct xfs_trans *, struct xfs_inode *, uint); void xfs_trans_ijoin(struct xfs_trans *, struct xfs_inode *, uint);
void xfs_trans_log_buf(xfs_trans_t *, struct xfs_buf *, uint, uint); void xfs_trans_log_buf(xfs_trans_t *, struct xfs_buf *, uint, uint);
void xfs_trans_log_inode(xfs_trans_t *, struct xfs_inode *, uint); void xfs_trans_log_inode(xfs_trans_t *, struct xfs_inode *, uint);
struct xfs_efi_log_item *xfs_trans_get_efi(xfs_trans_t *, uint); struct xfs_efi_log_item *xfs_trans_get_efi(struct xfs_trans *, uint);
void xfs_trans_log_efi_extent(xfs_trans_t *, void xfs_trans_log_efi_extent(struct xfs_trans *,
struct xfs_efi_log_item *, struct xfs_efi_log_item *,
xfs_fsblock_t, xfs_fsblock_t,
xfs_extlen_t); xfs_extlen_t);
struct xfs_efd_log_item *xfs_trans_get_efd(xfs_trans_t *, struct xfs_efd_log_item *xfs_trans_get_efd(struct xfs_trans *,
struct xfs_efi_log_item *, struct xfs_efi_log_item *,
uint); uint);
int xfs_trans_free_extent(struct xfs_trans *, int xfs_trans_free_extent(struct xfs_trans *,
......
...@@ -33,11 +33,11 @@ ...@@ -33,11 +33,11 @@
* caller must use all nextents extents, because we are not * caller must use all nextents extents, because we are not
* flexible about this at all. * flexible about this at all.
*/ */
xfs_efi_log_item_t * struct xfs_efi_log_item *
xfs_trans_get_efi(xfs_trans_t *tp, xfs_trans_get_efi(struct xfs_trans *tp,
uint nextents) uint nextents)
{ {
xfs_efi_log_item_t *efip; struct xfs_efi_log_item *efip;
ASSERT(tp != NULL); ASSERT(tp != NULL);
ASSERT(nextents > 0); ASSERT(nextents > 0);
...@@ -58,13 +58,13 @@ xfs_trans_get_efi(xfs_trans_t *tp, ...@@ -58,13 +58,13 @@ xfs_trans_get_efi(xfs_trans_t *tp,
* be called once for each extent to be freed. * be called once for each extent to be freed.
*/ */
void void
xfs_trans_log_efi_extent(xfs_trans_t *tp, xfs_trans_log_efi_extent(struct xfs_trans *tp,
xfs_efi_log_item_t *efip, struct xfs_efi_log_item *efip,
xfs_fsblock_t start_block, xfs_fsblock_t start_block,
xfs_extlen_t ext_len) xfs_extlen_t ext_len)
{ {
uint next_extent; uint next_extent;
xfs_extent_t *extp; struct xfs_extent *extp;
tp->t_flags |= XFS_TRANS_DIRTY; tp->t_flags |= XFS_TRANS_DIRTY;
efip->efi_item.li_desc->lid_flags |= XFS_LID_DIRTY; efip->efi_item.li_desc->lid_flags |= XFS_LID_DIRTY;
...@@ -88,12 +88,12 @@ xfs_trans_log_efi_extent(xfs_trans_t *tp, ...@@ -88,12 +88,12 @@ xfs_trans_log_efi_extent(xfs_trans_t *tp,
* caller must use all nextents extents, because we are not * caller must use all nextents extents, because we are not
* flexible about this at all. * flexible about this at all.
*/ */
xfs_efd_log_item_t * struct xfs_efd_log_item *
xfs_trans_get_efd(xfs_trans_t *tp, xfs_trans_get_efd(struct xfs_trans *tp,
xfs_efi_log_item_t *efip, struct xfs_efi_log_item *efip,
uint nextents) uint nextents)
{ {
xfs_efd_log_item_t *efdp; struct xfs_efd_log_item *efdp;
ASSERT(tp != NULL); ASSERT(tp != NULL);
ASSERT(nextents > 0); ASSERT(nextents > 0);
......
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