Lines Matching refs:error
169 int level, error;
181 error = xfs_da3_node_read_mapped(state->args->trans,
184 if (error)
185 return error;
199 error = xfs_da3_node_read_mapped(state->args->trans,
202 if (error)
203 return error;
221 * Returns 0 on successful retrieval, otherwise an error.
260 int error;
275 error = xfs_attr_get_ilocked(args);
278 return error;
350 int error;
358 error = xfs_attr_shortform_addname(args);
359 if (error == -ENOSPC)
360 return error;
364 * NOTE: this is also the error path (EEXIST, etc).
366 if (!error && !(args->op_flags & XFS_DA_OP_NOTIME))
372 return error;
381 int error = 0;
383 error = xfs_attr_try_sf_addname(dp, args);
384 if (error != -ENOSPC) {
385 ASSERT(!error || error == -EEXIST);
394 error = xfs_attr_shortform_to_leaf(args);
395 if (error)
396 return error;
401 return error;
436 int error;
444 error = xfs_attr_leaf_try_add(args);
446 if (error == -ENOSPC) {
447 error = xfs_attr3_leaf_to_node(args);
448 if (error)
449 return error;
458 if (error)
459 return error;
473 return error;
488 int error;
490 error = xfs_attr_node_addname_find_attr(attr);
491 if (error)
492 return error;
494 error = xfs_attr_node_try_addname(attr);
495 if (error == -ENOSPC) {
496 error = xfs_attr3_leaf_to_node(args);
497 if (error)
498 return error;
505 if (error)
506 return error;
515 return error;
523 int error = 0;
532 error = xfs_attr_rmtval_set_blk(attr);
533 if (error)
534 return error;
540 error = xfs_attr_rmtval_set_value(args);
541 if (error)
542 return error;
552 error = xfs_attr3_leaf_clearflag(args);
555 return error;
567 int error;
574 error = xfs_attr_fillstate(state);
575 if (error)
576 return error;
608 int error;
611 error = xfs_attr_node_lookup(args, attr->xattri_da_state);
612 if (error != -EEXIST)
614 error = 0;
621 error = xfs_attr_leaf_mark_incomplete(args, state);
622 if (error)
625 error = xfs_attr_rmtval_invalidate(args);
627 if (error) {
632 return error;
648 int error;
650 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno,
652 if (error)
653 return error;
659 error = xfs_attr3_leaf_to_shortform(bp, args, forkoff);
662 return error;
677 int error;
682 error = xfs_attr3_leaf_read(args->trans, args->dp, 0, &bp);
683 if (error)
684 return error;
688 error = xfs_attr3_leaf_to_shortform(bp, args, forkoff);
694 return error;
702 * need to handle this, and recall the function until either an error or
710 int error = 0;
726 error = xfs_attr_sf_removename(args);
731 error = xfs_attr_leaf_removename(args);
736 error = xfs_attr_node_removename_setup(attr);
737 if (error == -ENOATTR &&
741 error = 0;
744 if (error)
745 return error;
753 error = xfs_attr_rmtval_find_space(attr);
754 if (error)
755 return error;
761 error = xfs_attr_rmtval_alloc(attr);
762 if (error)
763 return error;
775 error = xfs_attr3_leaf_flipflags(args);
776 if (error)
777 return error;
796 error = xfs_attr_rmtval_invalidate(args);
797 if (error)
798 return error;
808 error = xfs_attr_rmtval_remove(attr);
809 if (error == -EAGAIN) {
810 error = 0;
813 if (error)
814 return error;
828 error = xfs_attr_leaf_remove_attr(attr);
834 error = xfs_attr_node_remove_attr(attr);
835 if (!error)
836 error = xfs_attr_leaf_shrink(args);
846 return error;
860 int error;
869 error = xfs_attr_leaf_hasname(args, &bp);
874 return error;
878 error = xfs_attr_node_lookup(args, state);
880 return error;
906 int error = 0;
908 error = xfs_attr_intent_init(args, XFS_ATTRI_OP_FLAGS_SET, &new);
909 if (error)
910 return error;
925 int error = 0;
927 error = xfs_attr_intent_init(args, XFS_ATTRI_OP_FLAGS_REPLACE, &new);
928 if (error)
929 return error;
945 int error;
947 error = xfs_attr_intent_init(args, XFS_ATTRI_OP_FLAGS_REMOVE, &new);
948 if (error)
949 return error;
970 int error, local;
977 error = xfs_qm_dqattach(dp);
978 if (error)
979 return error;
1007 error = xfs_bmap_add_attrfork(dp, sf_size, rsvd);
1008 if (error)
1009 return error;
1024 error = xfs_trans_alloc_inode(dp, &tres, total, 0, rsvd, &args->trans);
1025 if (error)
1026 return error;
1029 error = xfs_iext_count_may_overflow(dp, XFS_ATTR_FORK,
1031 if (error == -EFBIG)
1032 error = xfs_iext_count_upgrade(args->trans, dp,
1034 if (error)
1038 error = xfs_attr_lookup(args);
1039 switch (error) {
1043 error = xfs_attr_defer_remove(args);
1050 error = xfs_attr_defer_replace(args);
1061 error = xfs_attr_defer_add(args);
1066 if (error)
1083 error = xfs_trans_commit(args->trans);
1086 return error;
1115 int error;
1119 error = xfs_attr_shortform_lookup(args);
1120 switch (error) {
1123 return error;
1127 return error;
1129 error = xfs_attr_sf_removename(args);
1130 if (error)
1131 return error;
1144 return error;
1209 int error;
1211 error = xfs_attr3_leaf_read(args->trans, args->dp, 0, &bp);
1212 if (error)
1213 return error;
1218 error = xfs_attr3_leaf_lookup_int(bp, args);
1219 switch (error) {
1246 return error;
1257 int error = 0;
1259 error = xfs_attr3_leaf_read(args->trans, args->dp, 0, bp);
1260 if (error)
1261 return error;
1263 error = xfs_attr3_leaf_lookup_int(*bp, args);
1264 if (error != -ENOATTR && error != -EEXIST)
1267 return error;
1282 int error, forkoff;
1291 error = xfs_attr_leaf_hasname(args, &bp);
1292 if (error == -ENOATTR) {
1296 return error;
1297 } else if (error != -EEXIST)
1298 return error;
1319 * Returns 0 on successful retrieval, otherwise an error.
1325 int error;
1329 error = xfs_attr_leaf_hasname(args, &bp);
1331 if (error == -ENOATTR) {
1333 return error;
1334 } else if (error != -EEXIST)
1335 return error;
1338 error = xfs_attr3_leaf_getvalue(bp, args);
1340 return error;
1349 int retval, error;
1354 error = xfs_da3_node_lookup_int(state, &retval);
1355 if (error)
1356 return error;
1370 int error;
1377 error = xfs_attr_node_lookup(args, attr->xattri_da_state);
1378 switch (error) {
1381 goto error;
1385 goto error;
1399 goto error;
1403 error:
1408 return error;
1424 int error;
1431 error = xfs_attr3_leaf_add(blk->bp, state->args);
1432 if (error == -ENOSPC) {
1448 error = xfs_da3_split(state);
1449 if (error)
1461 return error;
1490 int error = 0;
1498 error = xfs_da3_node_lookup_int(state, &retval);
1499 if (error)
1502 error = xfs_attr_node_removename(args, state);
1508 error = xfs_da3_join(state);
1509 if (error)
1512 retval = error = 0;
1516 if (error)
1517 return error;
1528 * Returns 0 on successful retrieval, otherwise an error.
1537 int error;
1545 error = xfs_attr_node_lookup(args, state);
1546 if (error != -EEXIST)
1553 error = xfs_attr3_leaf_getvalue(blk->bp, args);
1565 return error;