rsvd ? XFS_TRANS_RESERVE : 0, &args.trans);
if (error)
return error;
+ xfs_defer_init(&dfops, &firstblock);
+ args.trans->t_dfops = &dfops;
xfs_ilock(dp, XFS_ILOCK_EXCL);
error = xfs_trans_reserve_quota_nblks(args.trans, dp, args.total, 0,
* It won't fit in the shortform, transform to a leaf block.
* GROT: another possible req'mt for a double-split btree op.
*/
- xfs_defer_init(args.dfops, args.firstblock);
error = xfs_attr_shortform_to_leaf(&args, &leaf_bp);
if (error)
goto out_defer_cancel;
* buffer and run into problems with the write verifier.
*/
xfs_trans_bhold(args.trans, leaf_bp);
- xfs_defer_bjoin(args.dfops, leaf_bp);
- xfs_defer_ijoin(args.dfops, dp);
- error = xfs_defer_finish(&args.trans, args.dfops);
+ xfs_defer_bjoin(&dfops, leaf_bp);
+ xfs_defer_ijoin(&dfops, dp);
+ error = xfs_defer_finish(&args.trans, &dfops);
if (error)
goto out_defer_cancel;
&args.trans);
if (error)
return error;
+ xfs_defer_init(&dfops, &firstblock);
+ args.trans->t_dfops = &dfops;
xfs_ilock(dp, XFS_ILOCK_EXCL);
/*
rsvd ? XFS_TRANS_RESERVE : 0, &tp);
if (error)
return error;
+ xfs_defer_init(&dfops, &firstblock);
+ tp->t_dfops = &dfops;
xfs_ilock(ip, XFS_ILOCK_EXCL);
error = xfs_trans_reserve_quota_nblks(tp, ip, blks, 0, rsvd ?
ip->i_afp = kmem_zone_zalloc(xfs_ifork_zone, KM_SLEEP);
ip->i_afp->if_flags = XFS_IFEXTENTS;
logflags = 0;
- xfs_defer_init(&dfops, &firstblock);
switch (ip->i_d.di_format) {
case XFS_DINODE_FMT_LOCAL:
error = xfs_bmap_add_attrfork_local(tp, ip, &firstblock, &dfops,