Lines Matching refs:args

81 STATIC int xfs_attr_shortform_addname(xfs_da_args_t *args);
86 STATIC int xfs_attr_leaf_addname(xfs_da_args_t *args);
87 STATIC int xfs_attr_leaf_removename(xfs_da_args_t *args);
93 STATIC int xfs_attr_node_addname(xfs_da_args_t *args);
94 STATIC int xfs_attr_node_removename(xfs_da_args_t *args);
102 STATIC int xfs_attr_rmtval_get(xfs_da_args_t *args);
103 STATIC int xfs_attr_rmtval_set(xfs_da_args_t *args);
104 STATIC int xfs_attr_rmtval_remove(xfs_da_args_t *args);
121 xfs_da_args_t args; in xfs_attr_fetch() local
137 memset((char *)&args, 0, sizeof(args)); in xfs_attr_fetch()
138 args.name = name; in xfs_attr_fetch()
139 args.namelen = namelen; in xfs_attr_fetch()
140 args.value = value; in xfs_attr_fetch()
141 args.valuelen = *valuelenp; in xfs_attr_fetch()
142 args.flags = flags; in xfs_attr_fetch()
143 args.hashval = xfs_da_hashname(args.name, args.namelen); in xfs_attr_fetch()
144 args.dp = ip; in xfs_attr_fetch()
145 args.whichfork = XFS_ATTR_FORK; in xfs_attr_fetch()
155 error = xfs_attr_shortform_getvalue(&args); in xfs_attr_fetch()
157 error = xfs_attr_leaf_get(&args); in xfs_attr_fetch()
159 error = xfs_attr_node_get(&args); in xfs_attr_fetch()
165 *valuelenp = args.valuelen; in xfs_attr_fetch()
201 xfs_da_args_t args; in xfs_attr_set() local
250 memset((char *)&args, 0, sizeof(args)); in xfs_attr_set()
251 args.name = name; in xfs_attr_set()
252 args.namelen = namelen; in xfs_attr_set()
253 args.value = value; in xfs_attr_set()
254 args.valuelen = valuelen; in xfs_attr_set()
255 args.flags = flags; in xfs_attr_set()
256 args.hashval = xfs_da_hashname(args.name, args.namelen); in xfs_attr_set()
257 args.dp = dp; in xfs_attr_set()
258 args.firstblock = &firstblock; in xfs_attr_set()
259 args.flist = &flist; in xfs_attr_set()
260 args.whichfork = XFS_ATTR_FORK; in xfs_attr_set()
261 args.oknoent = 1; in xfs_attr_set()
266 size = xfs_attr_leaf_newentsize(&args, mp->m_sb.sb_blocksize, &local); in xfs_attr_set()
284 args.total = nblks; in xfs_attr_set()
296 args.trans = xfs_trans_alloc(mp, XFS_TRANS_ATTR_SET); in xfs_attr_set()
304 args.trans->t_flags |= XFS_TRANS_RESERVE; in xfs_attr_set()
306 if ((error = xfs_trans_reserve(args.trans, (uint) nblks, in xfs_attr_set()
310 xfs_trans_cancel(args.trans, 0); in xfs_attr_set()
315 error = XFS_TRANS_RESERVE_QUOTA_NBLKS(mp, args.trans, dp, nblks, 0, in xfs_attr_set()
320 xfs_trans_cancel(args.trans, XFS_TRANS_RELEASE_LOG_RES); in xfs_attr_set()
324 xfs_trans_ijoin(args.trans, dp, XFS_ILOCK_EXCL); in xfs_attr_set()
325 xfs_trans_ihold(args.trans, dp); in xfs_attr_set()
339 (void)xfs_attr_shortform_create(&args); in xfs_attr_set()
345 error = xfs_attr_shortform_addname(&args); in xfs_attr_set()
351 ASSERT(args.trans != NULL); in xfs_attr_set()
359 xfs_trans_set_sync(args.trans); in xfs_attr_set()
361 err2 = xfs_trans_commit(args.trans, in xfs_attr_set()
379 XFS_BMAP_INIT(args.flist, args.firstblock); in xfs_attr_set()
380 error = xfs_attr_shortform_to_leaf(&args); in xfs_attr_set()
382 error = xfs_bmap_finish(&args.trans, args.flist, in xfs_attr_set()
383 *args.firstblock, &committed); in xfs_attr_set()
387 args.trans = NULL; in xfs_attr_set()
397 xfs_trans_ijoin(args.trans, dp, XFS_ILOCK_EXCL); in xfs_attr_set()
398 xfs_trans_ihold(args.trans, dp); in xfs_attr_set()
405 if ((error = xfs_attr_rolltrans(&args.trans, dp))) in xfs_attr_set()
411 error = xfs_attr_leaf_addname(&args); in xfs_attr_set()
413 error = xfs_attr_node_addname(&args); in xfs_attr_set()
424 xfs_trans_set_sync(args.trans); in xfs_attr_set()
430 xfs_trans_log_inode(args.trans, dp, XFS_ILOG_CORE); in xfs_attr_set()
431 error = xfs_trans_commit(args.trans, XFS_TRANS_RELEASE_LOG_RES, in xfs_attr_set()
445 if (args.trans) in xfs_attr_set()
446 xfs_trans_cancel(args.trans, in xfs_attr_set()
460 xfs_da_args_t args; in xfs_attr_remove() local
496 memset((char *)&args, 0, sizeof(args)); in xfs_attr_remove()
497 args.name = name; in xfs_attr_remove()
498 args.namelen = namelen; in xfs_attr_remove()
499 args.flags = flags; in xfs_attr_remove()
500 args.hashval = xfs_da_hashname(args.name, args.namelen); in xfs_attr_remove()
501 args.dp = dp; in xfs_attr_remove()
502 args.firstblock = &firstblock; in xfs_attr_remove()
503 args.flist = &flist; in xfs_attr_remove()
504 args.total = 0; in xfs_attr_remove()
505 args.whichfork = XFS_ATTR_FORK; in xfs_attr_remove()
523 args.trans = xfs_trans_alloc(mp, XFS_TRANS_ATTR_RM); in xfs_attr_remove()
531 args.trans->t_flags |= XFS_TRANS_RESERVE; in xfs_attr_remove()
533 if ((error = xfs_trans_reserve(args.trans, in xfs_attr_remove()
538 xfs_trans_cancel(args.trans, 0); in xfs_attr_remove()
548 xfs_trans_ijoin(args.trans, dp, XFS_ILOCK_EXCL); in xfs_attr_remove()
549 xfs_trans_ihold(args.trans, dp); in xfs_attr_remove()
562 error = xfs_attr_shortform_remove(&args); in xfs_attr_remove()
567 error = xfs_attr_leaf_removename(&args); in xfs_attr_remove()
569 error = xfs_attr_node_removename(&args); in xfs_attr_remove()
580 xfs_trans_set_sync(args.trans); in xfs_attr_remove()
586 xfs_trans_log_inode(args.trans, dp, XFS_ILOG_CORE); in xfs_attr_remove()
587 error = xfs_trans_commit(args.trans, XFS_TRANS_RELEASE_LOG_RES, in xfs_attr_remove()
601 if (args.trans) in xfs_attr_remove()
602 xfs_trans_cancel(args.trans, in xfs_attr_remove()
805 xfs_attr_shortform_addname(xfs_da_args_t *args) in xfs_attr_shortform_addname() argument
809 retval = xfs_attr_shortform_lookup(args); in xfs_attr_shortform_addname()
810 if ((args->flags & ATTR_REPLACE) && (retval == ENOATTR)) { in xfs_attr_shortform_addname()
813 if (args->flags & ATTR_CREATE) in xfs_attr_shortform_addname()
815 retval = xfs_attr_shortform_remove(args); in xfs_attr_shortform_addname()
819 newsize = XFS_ATTR_SF_TOTSIZE(args->dp); in xfs_attr_shortform_addname()
820 newsize += XFS_ATTR_SF_ENTSIZE_BYNAME(args->namelen, args->valuelen); in xfs_attr_shortform_addname()
821 if ((newsize <= XFS_IFORK_ASIZE(args->dp)) && in xfs_attr_shortform_addname()
822 (args->namelen < XFS_ATTR_SF_ENTSIZE_MAX) && in xfs_attr_shortform_addname()
823 (args->valuelen < XFS_ATTR_SF_ENTSIZE_MAX)) { in xfs_attr_shortform_addname()
824 retval = xfs_attr_shortform_add(args); in xfs_attr_shortform_addname()
844 xfs_attr_leaf_addname(xfs_da_args_t *args) in xfs_attr_leaf_addname() argument
853 dp = args->dp; in xfs_attr_leaf_addname()
854 args->blkno = 0; in xfs_attr_leaf_addname()
855 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp, in xfs_attr_leaf_addname()
865 retval = xfs_attr_leaf_lookup_int(bp, args); in xfs_attr_leaf_addname()
866 if ((args->flags & ATTR_REPLACE) && (retval == ENOATTR)) { in xfs_attr_leaf_addname()
867 xfs_da_brelse(args->trans, bp); in xfs_attr_leaf_addname()
870 if (args->flags & ATTR_CREATE) { /* pure create op */ in xfs_attr_leaf_addname()
871 xfs_da_brelse(args->trans, bp); in xfs_attr_leaf_addname()
874 args->rename = 1; /* an atomic rename */ in xfs_attr_leaf_addname()
875 args->blkno2 = args->blkno; /* set 2nd entry info*/ in xfs_attr_leaf_addname()
876 args->index2 = args->index; in xfs_attr_leaf_addname()
877 args->rmtblkno2 = args->rmtblkno; in xfs_attr_leaf_addname()
878 args->rmtblkcnt2 = args->rmtblkcnt; in xfs_attr_leaf_addname()
885 retval = xfs_attr_leaf_add(bp, args); in xfs_attr_leaf_addname()
893 XFS_BMAP_INIT(args->flist, args->firstblock); in xfs_attr_leaf_addname()
894 error = xfs_attr_leaf_to_node(args); in xfs_attr_leaf_addname()
896 error = xfs_bmap_finish(&args->trans, args->flist, in xfs_attr_leaf_addname()
897 *args->firstblock, &committed); in xfs_attr_leaf_addname()
901 args->trans = NULL; in xfs_attr_leaf_addname()
902 xfs_bmap_cancel(args->flist); in xfs_attr_leaf_addname()
911 xfs_trans_ijoin(args->trans, dp, XFS_ILOCK_EXCL); in xfs_attr_leaf_addname()
912 xfs_trans_ihold(args->trans, dp); in xfs_attr_leaf_addname()
919 if ((error = xfs_attr_rolltrans(&args->trans, dp))) in xfs_attr_leaf_addname()
925 error = xfs_attr_node_addname(args); in xfs_attr_leaf_addname()
933 if ((error = xfs_attr_rolltrans(&args->trans, dp))) in xfs_attr_leaf_addname()
942 if (args->rmtblkno > 0) { in xfs_attr_leaf_addname()
943 error = xfs_attr_rmtval_set(args); in xfs_attr_leaf_addname()
954 if (args->rename) { in xfs_attr_leaf_addname()
959 error = xfs_attr_leaf_flipflags(args); in xfs_attr_leaf_addname()
967 args->index = args->index2; in xfs_attr_leaf_addname()
968 args->blkno = args->blkno2; in xfs_attr_leaf_addname()
969 args->rmtblkno = args->rmtblkno2; in xfs_attr_leaf_addname()
970 args->rmtblkcnt = args->rmtblkcnt2; in xfs_attr_leaf_addname()
971 if (args->rmtblkno) { in xfs_attr_leaf_addname()
972 error = xfs_attr_rmtval_remove(args); in xfs_attr_leaf_addname()
981 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, in xfs_attr_leaf_addname()
986 (void)xfs_attr_leaf_remove(bp, args); in xfs_attr_leaf_addname()
992 XFS_BMAP_INIT(args->flist, args->firstblock); in xfs_attr_leaf_addname()
993 error = xfs_attr_leaf_to_shortform(bp, args); in xfs_attr_leaf_addname()
996 error = xfs_bmap_finish(&args->trans, in xfs_attr_leaf_addname()
997 args->flist, in xfs_attr_leaf_addname()
998 *args->firstblock, in xfs_attr_leaf_addname()
1003 args->trans = NULL; in xfs_attr_leaf_addname()
1004 xfs_bmap_cancel(args->flist); in xfs_attr_leaf_addname()
1014 xfs_trans_ijoin(args->trans, dp, XFS_ILOCK_EXCL); in xfs_attr_leaf_addname()
1015 xfs_trans_ihold(args->trans, dp); in xfs_attr_leaf_addname()
1023 error = xfs_attr_rolltrans(&args->trans, dp); in xfs_attr_leaf_addname()
1025 } else if (args->rmtblkno > 0) { in xfs_attr_leaf_addname()
1029 error = xfs_attr_leaf_clearflag(args); in xfs_attr_leaf_addname()
1041 xfs_attr_leaf_removename(xfs_da_args_t *args) in xfs_attr_leaf_removename() argument
1051 dp = args->dp; in xfs_attr_leaf_removename()
1052 args->blkno = 0; in xfs_attr_leaf_removename()
1053 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp, in xfs_attr_leaf_removename()
1060 error = xfs_attr_leaf_lookup_int(bp, args); in xfs_attr_leaf_removename()
1062 xfs_da_brelse(args->trans, bp); in xfs_attr_leaf_removename()
1066 (void)xfs_attr_leaf_remove(bp, args); in xfs_attr_leaf_removename()
1072 XFS_BMAP_INIT(args->flist, args->firstblock); in xfs_attr_leaf_removename()
1073 error = xfs_attr_leaf_to_shortform(bp, args); in xfs_attr_leaf_removename()
1076 error = xfs_bmap_finish(&args->trans, args->flist, in xfs_attr_leaf_removename()
1077 *args->firstblock, &committed); in xfs_attr_leaf_removename()
1081 args->trans = NULL; in xfs_attr_leaf_removename()
1082 xfs_bmap_cancel(args->flist); in xfs_attr_leaf_removename()
1091 xfs_trans_ijoin(args->trans, dp, XFS_ILOCK_EXCL); in xfs_attr_leaf_removename()
1092 xfs_trans_ihold(args->trans, dp); in xfs_attr_leaf_removename()
1106 xfs_attr_leaf_get(xfs_da_args_t *args) in xfs_attr_leaf_get() argument
1111 args->blkno = 0; in xfs_attr_leaf_get()
1112 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp, in xfs_attr_leaf_get()
1118 error = xfs_attr_leaf_lookup_int(bp, args); in xfs_attr_leaf_get()
1120 xfs_da_brelse(args->trans, bp); in xfs_attr_leaf_get()
1123 error = xfs_attr_leaf_getvalue(bp, args); in xfs_attr_leaf_get()
1124 xfs_da_brelse(args->trans, bp); in xfs_attr_leaf_get()
1125 if (!error && (args->rmtblkno > 0) && !(args->flags & ATTR_KERNOVAL)) { in xfs_attr_leaf_get()
1126 error = xfs_attr_rmtval_get(args); in xfs_attr_leaf_get()
1176 xfs_attr_node_addname(xfs_da_args_t *args) in xfs_attr_node_addname() argument
1187 dp = args->dp; in xfs_attr_node_addname()
1191 state->args = args; in xfs_attr_node_addname()
1205 if ((args->flags & ATTR_REPLACE) && (retval == ENOATTR)) { in xfs_attr_node_addname()
1208 if (args->flags & ATTR_CREATE) in xfs_attr_node_addname()
1210 args->rename = 1; /* atomic rename op */ in xfs_attr_node_addname()
1211 args->blkno2 = args->blkno; /* set 2nd entry info*/ in xfs_attr_node_addname()
1212 args->index2 = args->index; in xfs_attr_node_addname()
1213 args->rmtblkno2 = args->rmtblkno; in xfs_attr_node_addname()
1214 args->rmtblkcnt2 = args->rmtblkcnt; in xfs_attr_node_addname()
1215 args->rmtblkno = 0; in xfs_attr_node_addname()
1216 args->rmtblkcnt = 0; in xfs_attr_node_addname()
1219 retval = xfs_attr_leaf_add(blk->bp, state->args); in xfs_attr_node_addname()
1228 XFS_BMAP_INIT(args->flist, args->firstblock); in xfs_attr_node_addname()
1229 error = xfs_attr_leaf_to_node(args); in xfs_attr_node_addname()
1231 error = xfs_bmap_finish(&args->trans, in xfs_attr_node_addname()
1232 args->flist, in xfs_attr_node_addname()
1233 *args->firstblock, in xfs_attr_node_addname()
1238 args->trans = NULL; in xfs_attr_node_addname()
1239 xfs_bmap_cancel(args->flist); in xfs_attr_node_addname()
1249 xfs_trans_ijoin(args->trans, dp, XFS_ILOCK_EXCL); in xfs_attr_node_addname()
1250 xfs_trans_ihold(args->trans, dp); in xfs_attr_node_addname()
1257 if ((error = xfs_attr_rolltrans(&args->trans, dp))) in xfs_attr_node_addname()
1269 XFS_BMAP_INIT(args->flist, args->firstblock); in xfs_attr_node_addname()
1272 error = xfs_bmap_finish(&args->trans, args->flist, in xfs_attr_node_addname()
1273 *args->firstblock, &committed); in xfs_attr_node_addname()
1277 args->trans = NULL; in xfs_attr_node_addname()
1278 xfs_bmap_cancel(args->flist); in xfs_attr_node_addname()
1287 xfs_trans_ijoin(args->trans, dp, XFS_ILOCK_EXCL); in xfs_attr_node_addname()
1288 xfs_trans_ihold(args->trans, dp); in xfs_attr_node_addname()
1308 if ((error = xfs_attr_rolltrans(&args->trans, dp))) in xfs_attr_node_addname()
1317 if (args->rmtblkno > 0) { in xfs_attr_node_addname()
1318 error = xfs_attr_rmtval_set(args); in xfs_attr_node_addname()
1329 if (args->rename) { in xfs_attr_node_addname()
1334 error = xfs_attr_leaf_flipflags(args); in xfs_attr_node_addname()
1342 args->index = args->index2; in xfs_attr_node_addname()
1343 args->blkno = args->blkno2; in xfs_attr_node_addname()
1344 args->rmtblkno = args->rmtblkno2; in xfs_attr_node_addname()
1345 args->rmtblkcnt = args->rmtblkcnt2; in xfs_attr_node_addname()
1346 if (args->rmtblkno) { in xfs_attr_node_addname()
1347 error = xfs_attr_rmtval_remove(args); in xfs_attr_node_addname()
1357 args->flags |= XFS_ATTR_INCOMPLETE; in xfs_attr_node_addname()
1359 state->args = args; in xfs_attr_node_addname()
1373 error = xfs_attr_leaf_remove(blk->bp, args); in xfs_attr_node_addname()
1380 XFS_BMAP_INIT(args->flist, args->firstblock); in xfs_attr_node_addname()
1383 error = xfs_bmap_finish(&args->trans, in xfs_attr_node_addname()
1384 args->flist, in xfs_attr_node_addname()
1385 *args->firstblock, in xfs_attr_node_addname()
1390 args->trans = NULL; in xfs_attr_node_addname()
1391 xfs_bmap_cancel(args->flist); in xfs_attr_node_addname()
1401 xfs_trans_ijoin(args->trans, dp, XFS_ILOCK_EXCL); in xfs_attr_node_addname()
1402 xfs_trans_ihold(args->trans, dp); in xfs_attr_node_addname()
1409 if ((error = xfs_attr_rolltrans(&args->trans, dp))) in xfs_attr_node_addname()
1412 } else if (args->rmtblkno > 0) { in xfs_attr_node_addname()
1416 error = xfs_attr_leaf_clearflag(args); in xfs_attr_node_addname()
1438 xfs_attr_node_removename(xfs_da_args_t *args) in xfs_attr_node_removename() argument
1449 dp = args->dp; in xfs_attr_node_removename()
1451 state->args = args; in xfs_attr_node_removename()
1474 if (args->rmtblkno > 0) { in xfs_attr_node_removename()
1488 error = xfs_attr_leaf_setflag(args); in xfs_attr_node_removename()
1491 error = xfs_attr_rmtval_remove(args); in xfs_attr_node_removename()
1509 retval = xfs_attr_leaf_remove(blk->bp, args); in xfs_attr_node_removename()
1516 XFS_BMAP_INIT(args->flist, args->firstblock); in xfs_attr_node_removename()
1519 error = xfs_bmap_finish(&args->trans, args->flist, in xfs_attr_node_removename()
1520 *args->firstblock, &committed); in xfs_attr_node_removename()
1524 args->trans = NULL; in xfs_attr_node_removename()
1525 xfs_bmap_cancel(args->flist); in xfs_attr_node_removename()
1534 xfs_trans_ijoin(args->trans, dp, XFS_ILOCK_EXCL); in xfs_attr_node_removename()
1535 xfs_trans_ihold(args->trans, dp); in xfs_attr_node_removename()
1541 if ((error = xfs_attr_rolltrans(&args->trans, dp))) in xfs_attr_node_removename()
1557 error = xfs_da_read_buf(args->trans, args->dp, 0, -1, &bp, in xfs_attr_node_removename()
1566 XFS_BMAP_INIT(args->flist, args->firstblock); in xfs_attr_node_removename()
1567 error = xfs_attr_leaf_to_shortform(bp, args); in xfs_attr_node_removename()
1570 error = xfs_bmap_finish(&args->trans, in xfs_attr_node_removename()
1571 args->flist, in xfs_attr_node_removename()
1572 *args->firstblock, in xfs_attr_node_removename()
1577 args->trans = NULL; in xfs_attr_node_removename()
1578 xfs_bmap_cancel(args->flist); in xfs_attr_node_removename()
1588 xfs_trans_ijoin(args->trans, dp, XFS_ILOCK_EXCL); in xfs_attr_node_removename()
1589 xfs_trans_ihold(args->trans, dp); in xfs_attr_node_removename()
1592 xfs_da_brelse(args->trans, bp); in xfs_attr_node_removename()
1670 error = xfs_da_read_buf(state->args->trans, in xfs_attr_refillstate()
1671 state->args->dp, in xfs_attr_refillstate()
1689 error = xfs_da_read_buf(state->args->trans, in xfs_attr_refillstate()
1690 state->args->dp, in xfs_attr_refillstate()
1711 xfs_attr_node_get(xfs_da_args_t *args) in xfs_attr_node_get() argument
1719 state->args = args; in xfs_attr_node_get()
1720 state->mp = args->dp->i_mount; in xfs_attr_node_get()
1738 retval = xfs_attr_leaf_getvalue(blk->bp, args); in xfs_attr_node_get()
1739 if (!retval && (args->rmtblkno > 0) in xfs_attr_node_get()
1740 && !(args->flags & ATTR_KERNOVAL)) { in xfs_attr_node_get()
1741 retval = xfs_attr_rmtval_get(args); in xfs_attr_node_get()
1749 xfs_da_brelse(args->trans, state->path.blk[i].bp); in xfs_attr_node_get()
1916 xfs_attr_rmtval_get(xfs_da_args_t *args) in xfs_attr_rmtval_get() argument
1926 ASSERT(!(args->flags & ATTR_KERNOVAL)); in xfs_attr_rmtval_get()
1928 mp = args->dp->i_mount; in xfs_attr_rmtval_get()
1929 dst = args->value; in xfs_attr_rmtval_get()
1930 valuelen = args->valuelen; in xfs_attr_rmtval_get()
1931 lblkno = args->rmtblkno; in xfs_attr_rmtval_get()
1934 error = xfs_bmapi(args->trans, args->dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_get()
1935 args->rmtblkcnt, in xfs_attr_rmtval_get()
1971 xfs_attr_rmtval_set(xfs_da_args_t *args) in xfs_attr_rmtval_set() argument
1983 dp = args->dp; in xfs_attr_rmtval_set()
1985 src = args->value; in xfs_attr_rmtval_set()
1991 blkcnt = XFS_B_TO_FSB(mp, args->valuelen); in xfs_attr_rmtval_set()
1993 error = xfs_bmap_first_unused(args->trans, args->dp, blkcnt, &lfileoff, in xfs_attr_rmtval_set()
1998 args->rmtblkno = lblkno = (xfs_dablk_t)lfileoff; in xfs_attr_rmtval_set()
1999 args->rmtblkcnt = blkcnt; in xfs_attr_rmtval_set()
2008 XFS_BMAP_INIT(args->flist, args->firstblock); in xfs_attr_rmtval_set()
2010 error = xfs_bmapi(args->trans, dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_set()
2014 args->firstblock, args->total, &map, &nmap, in xfs_attr_rmtval_set()
2015 args->flist); in xfs_attr_rmtval_set()
2017 error = xfs_bmap_finish(&args->trans, args->flist, in xfs_attr_rmtval_set()
2018 *args->firstblock, &committed); in xfs_attr_rmtval_set()
2022 args->trans = NULL; in xfs_attr_rmtval_set()
2023 xfs_bmap_cancel(args->flist); in xfs_attr_rmtval_set()
2032 xfs_trans_ijoin(args->trans, dp, XFS_ILOCK_EXCL); in xfs_attr_rmtval_set()
2033 xfs_trans_ihold(args->trans, dp); in xfs_attr_rmtval_set()
2045 if ((error = xfs_attr_rolltrans(&args->trans, dp))) in xfs_attr_rmtval_set()
2055 lblkno = args->rmtblkno; in xfs_attr_rmtval_set()
2056 valuelen = args->valuelen; in xfs_attr_rmtval_set()
2061 XFS_BMAP_INIT(args->flist, args->firstblock); in xfs_attr_rmtval_set()
2064 args->rmtblkcnt, in xfs_attr_rmtval_set()
2066 args->firstblock, 0, &map, &nmap, NULL); in xfs_attr_rmtval_set()
2104 xfs_attr_rmtval_remove(xfs_da_args_t *args) in xfs_attr_rmtval_remove() argument
2113 mp = args->dp->i_mount; in xfs_attr_rmtval_remove()
2119 lblkno = args->rmtblkno; in xfs_attr_rmtval_remove()
2120 valuelen = args->rmtblkcnt; in xfs_attr_rmtval_remove()
2125 XFS_BMAP_INIT(args->flist, args->firstblock); in xfs_attr_rmtval_remove()
2127 error = xfs_bmapi(NULL, args->dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_remove()
2128 args->rmtblkcnt, in xfs_attr_rmtval_remove()
2130 args->firstblock, 0, &map, &nmap, in xfs_attr_rmtval_remove()
2131 args->flist); in xfs_attr_rmtval_remove()
2162 lblkno = args->rmtblkno; in xfs_attr_rmtval_remove()
2163 blkcnt = args->rmtblkcnt; in xfs_attr_rmtval_remove()
2166 XFS_BMAP_INIT(args->flist, args->firstblock); in xfs_attr_rmtval_remove()
2167 error = xfs_bunmapi(args->trans, args->dp, lblkno, blkcnt, in xfs_attr_rmtval_remove()
2169 1, args->firstblock, args->flist, &done); in xfs_attr_rmtval_remove()
2171 error = xfs_bmap_finish(&args->trans, args->flist, in xfs_attr_rmtval_remove()
2172 *args->firstblock, &committed); in xfs_attr_rmtval_remove()
2176 args->trans = NULL; in xfs_attr_rmtval_remove()
2177 xfs_bmap_cancel(args->flist); in xfs_attr_rmtval_remove()
2186 xfs_trans_ijoin(args->trans, args->dp, XFS_ILOCK_EXCL); in xfs_attr_rmtval_remove()
2187 xfs_trans_ihold(args->trans, args->dp); in xfs_attr_rmtval_remove()
2193 if ((error = xfs_attr_rolltrans(&args->trans, args->dp))) in xfs_attr_rmtval_remove()