cur->bc_rec.a.ar_startblock = bno;
        cur->bc_rec.a.ar_blockcount = len;
        error = xfs_btree_lookup(cur, XFS_LOOKUP_EQ, stat);
-       cur->bc_ag.priv.abt.active = (*stat == 1);
+       cur->bc_ag.abt.active = (*stat == 1);
        return error;
 }
 
        cur->bc_rec.a.ar_startblock = bno;
        cur->bc_rec.a.ar_blockcount = len;
        error = xfs_btree_lookup(cur, XFS_LOOKUP_GE, stat);
-       cur->bc_ag.priv.abt.active = (*stat == 1);
+       cur->bc_ag.abt.active = (*stat == 1);
        return error;
 }
 
        cur->bc_rec.a.ar_startblock = bno;
        cur->bc_rec.a.ar_blockcount = len;
        error = xfs_btree_lookup(cur, XFS_LOOKUP_LE, stat);
-       cur->bc_ag.priv.abt.active = (*stat == 1);
+       cur->bc_ag.abt.active = (*stat == 1);
        return error;
 }
 
 xfs_alloc_cur_active(
        struct xfs_btree_cur    *cur)
 {
-       return cur && cur->bc_ag.priv.abt.active;
+       return cur && cur->bc_ag.abt.active;
 }
 
 /*
                deactivate = true;
 out:
        if (deactivate)
-               cur->bc_ag.priv.abt.active = false;
+               cur->bc_ag.abt.active = false;
        trace_xfs_alloc_cur_check(args->mp, cur->bc_btnum, bno, len, diff,
                                  *new);
        return 0;
                if (error)
                        return error;
                if (i == 0)
-                       cur->bc_ag.priv.abt.active = false;
+                       cur->bc_ag.abt.active = false;
 
                if (count > 0)
                        count--;
                if (error)
                        return error;
                if (i) {
-                       acur->cnt->bc_ag.priv.abt.active = true;
+                       acur->cnt->bc_ag.abt.active = true;
                        fbcur = acur->cnt;
                        fbinc = false;
                }
 
 
        cur->bc_ag.agbp = agbp;
        cur->bc_ag.agno = agno;
-       cur->bc_ag.priv.abt.active = false;
+       cur->bc_ag.abt.active = false;
 
        if (xfs_sb_version_hascrc(&mp->m_sb))
                cur->bc_flags |= XFS_BTREE_CRC_BLOCKS;
 
        struct xfs_refcount_irec        rc;
 };
 
-/* Per-AG btree private information. */
-union xfs_btree_cur_private {
-       struct {
-               unsigned long   nr_ops;         /* # record updates */
-               int             shape_changes;  /* # of extent splits */
-       } refc;
-       struct {
-               bool            active;         /* allocation cursor state */
-       } abt;
-};
-
 /* Per-AG btree information. */
 struct xfs_btree_cur_ag {
-       struct xfs_buf                  *agbp;
-       xfs_agnumber_t                  agno;
-       union xfs_btree_cur_private     priv;
+       struct xfs_buf          *agbp;
+       xfs_agnumber_t          agno;
+       union {
+               struct {
+                       unsigned long nr_ops;   /* # record updates */
+                       int     shape_changes;  /* # of extent splits */
+               } refc;
+               struct {
+                       bool    active;         /* allocation cursor state */
+               } abt;
+       };
 };
 
 /* Btree-in-inode cursor information */
 
 {
        unsigned long                   overhead;
 
-       overhead = cur->bc_ag.priv.refc.shape_changes *
+       overhead = cur->bc_ag.refc.shape_changes *
                        xfs_allocfree_log_count(cur->bc_mp, 1);
        overhead *= cur->bc_mp->m_sb.sb_blocksize;
 
         * Only allow 2 refcount extent updates per transaction if the
         * refcount continue update "error" has been injected.
         */
-       if (cur->bc_ag.priv.refc.nr_ops > 2 &&
+       if (cur->bc_ag.refc.nr_ops > 2 &&
            XFS_TEST_ERROR(false, cur->bc_mp,
                        XFS_ERRTAG_REFCOUNT_CONTINUE_UPDATE))
                return false;
 
-       if (cur->bc_ag.priv.refc.nr_ops == 0)
+       if (cur->bc_ag.refc.nr_ops == 0)
                return true;
        else if (overhead > cur->bc_tp->t_log_res)
                return false;
        return  cur->bc_tp->t_log_res - overhead >
-               cur->bc_ag.priv.refc.nr_ops * XFS_REFCOUNT_ITEM_OVERHEAD;
+               cur->bc_ag.refc.nr_ops * XFS_REFCOUNT_ITEM_OVERHEAD;
 }
 
 /*
                                        error = -EFSCORRUPTED;
                                        goto out_error;
                                }
-                               cur->bc_ag.priv.refc.nr_ops++;
+                               cur->bc_ag.refc.nr_ops++;
                        } else {
                                fsbno = XFS_AGB_TO_FSB(cur->bc_mp,
                                                cur->bc_ag.agno,
                        error = xfs_refcount_update(cur, &ext);
                        if (error)
                                goto out_error;
-                       cur->bc_ag.priv.refc.nr_ops++;
+                       cur->bc_ag.refc.nr_ops++;
                } else if (ext.rc_refcount == 1) {
                        error = xfs_refcount_delete(cur, &found_rec);
                        if (error)
                                error = -EFSCORRUPTED;
                                goto out_error;
                        }
-                       cur->bc_ag.priv.refc.nr_ops++;
+                       cur->bc_ag.refc.nr_ops++;
                        goto advloop;
                } else {
                        fsbno = XFS_AGB_TO_FSB(cur->bc_mp,
        if (shape_changed)
                shape_changes++;
        if (shape_changes)
-               cur->bc_ag.priv.refc.shape_changes++;
+               cur->bc_ag.refc.shape_changes++;
 
        /* Now that we've taken care of the ends, adjust the middle extents */
        error = xfs_refcount_adjust_extents(cur, new_agbno, new_aglen,
         */
        rcur = *pcur;
        if (rcur != NULL && rcur->bc_ag.agno != agno) {
-               nr_ops = rcur->bc_ag.priv.refc.nr_ops;
-               shape_changes = rcur->bc_ag.priv.refc.shape_changes;
+               nr_ops = rcur->bc_ag.refc.nr_ops;
+               shape_changes = rcur->bc_ag.refc.shape_changes;
                xfs_refcount_finish_one_cleanup(tp, rcur, 0);
                rcur = NULL;
                *pcur = NULL;
                        error = -ENOMEM;
                        goto out_cur;
                }
-               rcur->bc_ag.priv.refc.nr_ops = nr_ops;
-               rcur->bc_ag.priv.refc.shape_changes = shape_changes;
+               rcur->bc_ag.refc.nr_ops = nr_ops;
+               rcur->bc_ag.refc.shape_changes = shape_changes;
        }
        *pcur = rcur;
 
 
        cur->bc_ag.agno = agno;
        cur->bc_flags |= XFS_BTREE_CRC_BLOCKS;
 
-       cur->bc_ag.priv.refc.nr_ops = 0;
-       cur->bc_ag.priv.refc.shape_changes = 0;
+       cur->bc_ag.refc.nr_ops = 0;
+       cur->bc_ag.refc.shape_changes = 0;
 
        return cur;
 }