*/
 STATIC void
 xfs_buf_item_size_segment(
-       struct xfs_buf_log_item *bip,
-       struct xfs_buf_log_format *blfp,
-       int                     *nvecs,
-       int                     *nbytes)
+       struct xfs_buf_log_item         *bip,
+       struct xfs_buf_log_format       *blfp,
+       int                             *nvecs,
+       int                             *nbytes)
 {
-       struct xfs_buf          *bp = bip->bli_buf;
-       int                     next_bit;
-       int                     last_bit;
+       struct xfs_buf                  *bp = bip->bli_buf;
+       int                             next_bit;
+       int                             last_bit;
 
        last_bit = xfs_next_bit(blfp->blf_data_map, blfp->blf_map_size, 0);
        if (last_bit == -1)
        uint                    offset,
        struct xfs_buf_log_format *blfp)
 {
-       struct xfs_buf  *bp = bip->bli_buf;
-       uint            base_size;
-       int             first_bit;
-       int             last_bit;
-       int             next_bit;
-       uint            nbits;
+       struct xfs_buf          *bp = bip->bli_buf;
+       uint                    base_size;
+       int                     first_bit;
+       int                     last_bit;
+       int                     next_bit;
+       uint                    nbits;
 
        /* copy the flags across from the base format item */
        blfp->blf_flags = bip->__bli_format.blf_flags;
        int                     remove)
 {
        struct xfs_buf_log_item *bip = BUF_ITEM(lip);
-       xfs_buf_t       *bp = bip->bli_buf;
-       struct xfs_ail  *ailp = lip->li_ailp;
-       int             stale = bip->bli_flags & XFS_BLI_STALE;
-       int             freed;
+       xfs_buf_t               *bp = bip->bli_buf;
+       struct xfs_ail          *ailp = lip->li_ailp;
+       int                     stale = bip->bli_flags & XFS_BLI_STALE;
+       int                     freed;
 
        ASSERT(bp->b_fspriv == bip);
        ASSERT(atomic_read(&bip->bli_refcount) > 0);
  */
 void
 xfs_buf_item_log(
-       xfs_buf_log_item_t      *bip,
+       struct xfs_buf_log_item *bip,
        uint                    first,
        uint                    last)
 {
 
 STATIC void
 xfs_buf_item_free(
-       xfs_buf_log_item_t      *bip)
+       struct xfs_buf_log_item *bip)
 {
        xfs_buf_item_free_format(bip);
        kmem_free(bip->bli_item.li_lv_shadow);
 xfs_buf_item_relse(
        xfs_buf_t       *bp)
 {
-       xfs_buf_log_item_t      *bip = bp->b_fspriv;
+       struct xfs_buf_log_item *bip = bp->b_fspriv;
 
        trace_xfs_buf_item_relse(bp, _RET_IP_);
        ASSERT(!(bip->bli_item.li_flags & XFS_LI_IN_AIL));
 
  * needed to log buffers.  It tracks how many times the lock has been
  * locked, and which 128 byte chunks of the buffer are dirty.
  */
-typedef struct xfs_buf_log_item {
+struct xfs_buf_log_item {
        xfs_log_item_t          bli_item;       /* common item structure */
        struct xfs_buf          *bli_buf;       /* real buffer pointer */
        unsigned int            bli_flags;      /* misc flags */
        int                     bli_format_count;       /* count of headers */
        struct xfs_buf_log_format *bli_formats; /* array of in-log header ptrs */
        struct xfs_buf_log_format __bli_format; /* embedded in-log header */
-} xfs_buf_log_item_t;
+};
 
 int    xfs_buf_item_init(struct xfs_buf *, struct xfs_mount *);
 void   xfs_buf_item_relse(struct xfs_buf *);
-void   xfs_buf_item_log(xfs_buf_log_item_t *, uint, uint);
+void   xfs_buf_item_log(struct xfs_buf_log_item *, uint, uint);
 bool   xfs_buf_item_dirty_format(struct xfs_buf_log_item *);
 void   xfs_buf_attach_iodone(struct xfs_buf *,
                              void(*)(struct xfs_buf *, xfs_log_item_t *),
 
        xfs_buf_flags_t         flags)
 {
        xfs_buf_t               *bp;
-       xfs_buf_log_item_t      *bip;
+       struct xfs_buf_log_item *bip;
 
        if (!tp)
                return xfs_buf_get_map(target, map, nmaps, flags);
  * mount structure.
  */
 xfs_buf_t *
-xfs_trans_getsb(xfs_trans_t    *tp,
-               struct xfs_mount *mp,
-               int             flags)
+xfs_trans_getsb(
+       xfs_trans_t             *tp,
+       struct xfs_mount        *mp,
+       int                     flags)
 {
        xfs_buf_t               *bp;
-       xfs_buf_log_item_t      *bip;
+       struct xfs_buf_log_item *bip;
 
        /*
         * Default to just trying to lock the superblock buffer
  * brelse() call.
  */
 void
-xfs_trans_brelse(xfs_trans_t   *tp,
-                xfs_buf_t      *bp)
+xfs_trans_brelse(
+       xfs_trans_t             *tp,
+       xfs_buf_t               *bp)
 {
-       xfs_buf_log_item_t      *bip;
+       struct xfs_buf_log_item *bip;
        int                     freed;
 
        /*
  */
 /* ARGSUSED */
 void
-xfs_trans_bhold(xfs_trans_t    *tp,
-               xfs_buf_t       *bp)
+xfs_trans_bhold(
+       xfs_trans_t             *tp,
+       xfs_buf_t               *bp)
 {
-       xfs_buf_log_item_t      *bip = bp->b_fspriv;
+       struct xfs_buf_log_item *bip = bp->b_fspriv;
 
        ASSERT(bp->b_transp == tp);
        ASSERT(bip != NULL);
  * for this transaction.
  */
 void
-xfs_trans_bhold_release(xfs_trans_t    *tp,
-                       xfs_buf_t       *bp)
+xfs_trans_bhold_release(
+       xfs_trans_t             *tp,
+       xfs_buf_t               *bp)
 {
-       xfs_buf_log_item_t      *bip = bp->b_fspriv;
+       struct xfs_buf_log_item *bip = bp->b_fspriv;
 
        ASSERT(bp->b_transp == tp);
        ASSERT(bip != NULL);
  */
 void
 xfs_trans_binval(
-       xfs_trans_t     *tp,
-       xfs_buf_t       *bp)
+       xfs_trans_t             *tp,
+       xfs_buf_t               *bp)
 {
-       xfs_buf_log_item_t      *bip = bp->b_fspriv;
+       struct xfs_buf_log_item *bip = bp->b_fspriv;
        int                     i;
 
        ASSERT(bp->b_transp == tp);
  */
 void
 xfs_trans_inode_buf(
-       xfs_trans_t     *tp,
-       xfs_buf_t       *bp)
+       xfs_trans_t             *tp,
+       xfs_buf_t               *bp)
 {
-       xfs_buf_log_item_t      *bip = bp->b_fspriv;
+       struct xfs_buf_log_item *bip = bp->b_fspriv;
 
        ASSERT(bp->b_transp == tp);
        ASSERT(bip != NULL);
  */
 void
 xfs_trans_stale_inode_buf(
-       xfs_trans_t     *tp,
-       xfs_buf_t       *bp)
+       xfs_trans_t             *tp,
+       xfs_buf_t               *bp)
 {
-       xfs_buf_log_item_t      *bip = bp->b_fspriv;
+       struct xfs_buf_log_item *bip = bp->b_fspriv;
 
        ASSERT(bp->b_transp == tp);
        ASSERT(bip != NULL);
 /* ARGSUSED */
 void
 xfs_trans_inode_alloc_buf(
-       xfs_trans_t     *tp,
-       xfs_buf_t       *bp)
+       xfs_trans_t             *tp,
+       xfs_buf_t               *bp)
 {
-       xfs_buf_log_item_t      *bip = bp->b_fspriv;
+       struct xfs_buf_log_item *bip = bp->b_fspriv;
 
        ASSERT(bp->b_transp == tp);
        ASSERT(bip != NULL);
 /* ARGSUSED */
 void
 xfs_trans_dquot_buf(
-       xfs_trans_t     *tp,
-       xfs_buf_t       *bp,
-       uint            type)
+       xfs_trans_t             *tp,
+       xfs_buf_t               *bp,
+       uint                    type)
 {
        struct xfs_buf_log_item *bip = bp->b_fspriv;