struct xfs_da_args      args;
        struct xfs_defer_ops    dfops;
        struct xfs_trans_res    tres;
-       xfs_fsblock_t           firstblock;
        int                     rsvd = (flags & ATTR_ROOT) != 0;
        int                     error, err2, local;
 
 
        args.value = value;
        args.valuelen = valuelen;
-       args.firstblock = &firstblock;
        args.op_flags = XFS_DA_OP_ADDNAME | XFS_DA_OP_OKNOENT;
        args.total = xfs_attr_calc_size(&args, &local);
 
                        rsvd ? XFS_TRANS_RESERVE : 0, &args.trans);
        if (error)
                return error;
-       xfs_defer_init(args.trans, &dfops, &firstblock);
+       xfs_defer_init(args.trans, &dfops, &args.trans->t_firstblock);
 
        xfs_ilock(dp, XFS_ILOCK_EXCL);
        error = xfs_trans_reserve_quota_nblks(args.trans, dp, args.total, 0,
        struct xfs_mount        *mp = dp->i_mount;
        struct xfs_da_args      args;
        struct xfs_defer_ops    dfops;
-       xfs_fsblock_t           firstblock;
        int                     error;
 
        XFS_STATS_INC(mp, xs_attr_remove);
        if (error)
                return error;
 
-       args.firstblock = &firstblock;
-
        /*
         * we have no control over the attribute names that userspace passes us
         * to remove, so we have to allow the name lookup prior to attribute
                        &args.trans);
        if (error)
                return error;
-       xfs_defer_init(args.trans, &dfops, &firstblock);
+       xfs_defer_init(args.trans, &dfops, &args.trans->t_firstblock);
 
        xfs_ilock(dp, XFS_ILOCK_EXCL);
        /*
                 * Commit that transaction so that the node_addname() call
                 * can manage its own transactions.
                 */
-               xfs_defer_init(NULL, args->trans->t_dfops, args->firstblock);
+               xfs_defer_init(args->trans, args->trans->t_dfops,
+                              &args->trans->t_firstblock);
                error = xfs_attr3_leaf_to_node(args);
                if (error)
                        goto out_defer_cancel;
                 * If the result is small enough, shrink it all into the inode.
                 */
                if ((forkoff = xfs_attr_shortform_allfit(bp, dp))) {
-                       xfs_defer_init(NULL, args->trans->t_dfops,
-                                      args->firstblock);
+                       xfs_defer_init(args->trans, args->trans->t_dfops,
+                                      &args->trans->t_firstblock);
                        error = xfs_attr3_leaf_to_shortform(bp, args, forkoff);
                        /* bp is gone due to xfs_da_shrink_inode */
                        if (error)
         * If the result is small enough, shrink it all into the inode.
         */
        if ((forkoff = xfs_attr_shortform_allfit(bp, dp))) {
-               xfs_defer_init(NULL, args->trans->t_dfops, args->firstblock);
+               xfs_defer_init(args->trans, args->trans->t_dfops,
+                              &args->trans->t_firstblock);
                error = xfs_attr3_leaf_to_shortform(bp, args, forkoff);
                /* bp is gone due to xfs_da_shrink_inode */
                if (error)
                         */
                        xfs_da_state_free(state);
                        state = NULL;
-                       xfs_defer_init(NULL, args->trans->t_dfops,
-                                      args->firstblock);
+                       xfs_defer_init(args->trans, args->trans->t_dfops,
+                                      &args->trans->t_firstblock);
                        error = xfs_attr3_leaf_to_node(args);
                        if (error)
                                goto out_defer_cancel;
                 * in the index/blkno/rmtblkno/rmtblkcnt fields and
                 * in the index2/blkno2/rmtblkno2/rmtblkcnt2 fields.
                 */
-               xfs_defer_init(NULL, args->trans->t_dfops, args->firstblock);
+               xfs_defer_init(args->trans, args->trans->t_dfops,
+                              &args->trans->t_firstblock);
                error = xfs_da3_split(state);
                if (error)
                        goto out_defer_cancel;
                 * Check to see if the tree needs to be collapsed.
                 */
                if (retval && (state->path.active > 1)) {
-                       xfs_defer_init(NULL, args->trans->t_dfops,
-                                      args->firstblock);
+                       xfs_defer_init(args->trans, args->trans->t_dfops,
+                                      &args->trans->t_firstblock);
                        error = xfs_da3_join(state);
                        if (error)
                                goto out_defer_cancel;
         * Check to see if the tree needs to be collapsed.
         */
        if (retval && (state->path.active > 1)) {
-               xfs_defer_init(NULL, args->trans->t_dfops, args->firstblock);
+               xfs_defer_init(args->trans, args->trans->t_dfops,
+                              &args->trans->t_firstblock);
                error = xfs_da3_join(state);
                if (error)
                        goto out_defer_cancel;
                        goto out;
 
                if ((forkoff = xfs_attr_shortform_allfit(bp, dp))) {
-                       xfs_defer_init(NULL, args->trans->t_dfops,
-                                      args->firstblock);
+                       xfs_defer_init(args->trans, args->trans->t_dfops,
+                                      &args->trans->t_firstblock);
                        error = xfs_attr3_leaf_to_shortform(bp, args, forkoff);
                        /* bp is gone due to xfs_da_shrink_inode */
                        if (error)
 
        memset((char *)&nargs, 0, sizeof(nargs));
        nargs.dp = dp;
        nargs.geo = args->geo;
-       nargs.firstblock = args->firstblock;
        nargs.total = args->total;
        nargs.whichfork = XFS_ATTR_FORK;
        nargs.trans = args->trans;
        memset((char *)&nargs, 0, sizeof(nargs));
        nargs.geo = args->geo;
        nargs.dp = dp;
-       nargs.firstblock = args->firstblock;
        nargs.total = args->total;
        nargs.whichfork = XFS_ATTR_FORK;
        nargs.trans = args->trans;
 
                 * extent and then crash then the block may not contain the
                 * correct metadata after log recovery occurs.
                 */
-               xfs_defer_init(NULL, args->trans->t_dfops, args->firstblock);
+               xfs_defer_init(args->trans, args->trans->t_dfops,
+                              &args->trans->t_firstblock);
                nmap = 1;
                error = xfs_bmapi_write(args->trans, dp, (xfs_fileoff_t)lblkno,
-                                 blkcnt, XFS_BMAPI_ATTRFORK, args->firstblock,
-                                 args->total, &map, &nmap);
+                                 blkcnt, XFS_BMAPI_ATTRFORK,
+                                 &args->trans->t_firstblock, args->total, &map,
+                                 &nmap);
                if (error)
                        goto out_defer_cancel;
                xfs_defer_ijoin(args->trans->t_dfops, dp);
 
                ASSERT(blkcnt > 0);
 
-               xfs_defer_init(NULL, args->trans->t_dfops, args->firstblock);
+               xfs_defer_init(args->trans, args->trans->t_dfops,
+                              &args->trans->t_firstblock);
                nmap = 1;
                error = xfs_bmapi_read(dp, (xfs_fileoff_t)lblkno,
                                       blkcnt, &map, &nmap,
        blkcnt = args->rmtblkcnt;
        done = 0;
        while (!done) {
-               xfs_defer_init(NULL, args->trans->t_dfops, args->firstblock);
+               xfs_defer_init(args->trans, args->trans->t_dfops,
+                              &args->trans->t_firstblock);
                error = xfs_bunmapi(args->trans, args->dp, lblkno, blkcnt,
-                                   XFS_BMAPI_ATTRFORK, 1, args->firstblock,
-                                   &done);
+                                   XFS_BMAPI_ATTRFORK, 1,
+                                   &args->trans->t_firstblock, &done);
                if (error)
                        goto out_defer_cancel;
                xfs_defer_ijoin(args->trans->t_dfops, args->dp);
 
                memset(&dargs, 0, sizeof(dargs));
                dargs.geo = ip->i_mount->m_dir_geo;
                dargs.dp = ip;
-               dargs.firstblock = &tp->t_firstblock;
                dargs.total = dargs.geo->fsbcount;
                dargs.whichfork = XFS_DATA_FORK;
                dargs.trans = tp;
 
         * Try mapping it in one filesystem block.
         */
        nmap = 1;
-       ASSERT(args->firstblock != NULL);
        error = xfs_bmapi_write(tp, dp, *bno, count,
                        xfs_bmapi_aflag(w)|XFS_BMAPI_METADATA|XFS_BMAPI_CONTIG,
-                       args->firstblock, args->total, &map, &nmap);
+                       &tp->t_firstblock, args->total, &map, &nmap);
        if (error)
                return error;
 
                        c = (int)(*bno + count - b);
                        error = xfs_bmapi_write(tp, dp, b, c,
                                        xfs_bmapi_aflag(w)|XFS_BMAPI_METADATA,
-                                       args->firstblock, args->total,
+                                       &tp->t_firstblock, args->total,
                                        &mapp[mapi], &nmap);
                        if (error)
                                goto out_free_map;
                 * the last block to the place we want to kill.
                 */
                error = xfs_bunmapi(tp, dp, dead_blkno, count,
-                                   xfs_bmapi_aflag(w), 0, args->firstblock,
+                                   xfs_bmapi_aflag(w), 0, &tp->t_firstblock,
                                    &done);
                if (error == -ENOSPC) {
                        if (w != XFS_DATA_FORK)
 
        xfs_dahash_t    hashval;        /* hash value of name */
        xfs_ino_t       inumber;        /* input/output inode number */
        struct xfs_inode *dp;           /* directory inode to manipulate */
-       xfs_fsblock_t   *firstblock;    /* ptr to firstblock for bmap calls */
        struct xfs_trans *trans;        /* current trans (changes over time) */
        xfs_extlen_t    total;          /* total blocks needed, for 1st bmap */
        int             whichfork;      /* data or attribute fork */
 
        args->total = total;
        args->whichfork = XFS_DATA_FORK;
        args->trans = tp;
-       args->firstblock = &tp->t_firstblock;
        args->op_flags = XFS_DA_OP_ADDNAME | XFS_DA_OP_OKNOENT;
        if (!inum)
                args->op_flags |= XFS_DA_OP_JUSTCHECK;
        args->hashval = dp->i_mount->m_dirnameops->hashname(name);
        args->inumber = ino;
        args->dp = dp;
-       args->firstblock = &tp->t_firstblock;
        args->total = total;
        args->whichfork = XFS_DATA_FORK;
        args->trans = tp;
        args->hashval = dp->i_mount->m_dirnameops->hashname(name);
        args->inumber = inum;
        args->dp = dp;
-       args->firstblock = &tp->t_firstblock;
        args->total = total;
        args->whichfork = XFS_DATA_FORK;
        args->trans = tp;
 
        /* Unmap the fsblock(s). */
        error = xfs_bunmapi(tp, dp, da, args->geo->fsbcount, 0, 0,
-                           args->firstblock, &done);
+                           &tp->t_firstblock, &done);
        if (error) {
                /*
                 * ENOSPC actually can happen if we're in a removename with no