|
@@ -587,7 +587,7 @@ xfs_attr_leaf_addname(
|
|
*/
|
|
*/
|
|
error = xfs_attr3_leaf_to_node(args);
|
|
error = xfs_attr3_leaf_to_node(args);
|
|
if (error)
|
|
if (error)
|
|
- goto out_defer_cancel;
|
|
|
|
|
|
+ return error;
|
|
error = xfs_defer_finish(&args->trans);
|
|
error = xfs_defer_finish(&args->trans);
|
|
if (error)
|
|
if (error)
|
|
return error;
|
|
return error;
|
|
@@ -675,7 +675,7 @@ xfs_attr_leaf_addname(
|
|
error = xfs_attr3_leaf_to_shortform(bp, args, forkoff);
|
|
error = xfs_attr3_leaf_to_shortform(bp, args, forkoff);
|
|
/* bp is gone due to xfs_da_shrink_inode */
|
|
/* bp is gone due to xfs_da_shrink_inode */
|
|
if (error)
|
|
if (error)
|
|
- goto out_defer_cancel;
|
|
|
|
|
|
+ return error;
|
|
error = xfs_defer_finish(&args->trans);
|
|
error = xfs_defer_finish(&args->trans);
|
|
if (error)
|
|
if (error)
|
|
return error;
|
|
return error;
|
|
@@ -693,9 +693,6 @@ xfs_attr_leaf_addname(
|
|
error = xfs_attr3_leaf_clearflag(args);
|
|
error = xfs_attr3_leaf_clearflag(args);
|
|
}
|
|
}
|
|
return error;
|
|
return error;
|
|
-out_defer_cancel:
|
|
|
|
- xfs_defer_cancel(args->trans);
|
|
|
|
- return error;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -738,15 +735,12 @@ xfs_attr_leaf_removename(
|
|
error = xfs_attr3_leaf_to_shortform(bp, args, forkoff);
|
|
error = xfs_attr3_leaf_to_shortform(bp, args, forkoff);
|
|
/* bp is gone due to xfs_da_shrink_inode */
|
|
/* bp is gone due to xfs_da_shrink_inode */
|
|
if (error)
|
|
if (error)
|
|
- goto out_defer_cancel;
|
|
|
|
|
|
+ return error;
|
|
error = xfs_defer_finish(&args->trans);
|
|
error = xfs_defer_finish(&args->trans);
|
|
if (error)
|
|
if (error)
|
|
return error;
|
|
return error;
|
|
}
|
|
}
|
|
return 0;
|
|
return 0;
|
|
-out_defer_cancel:
|
|
|
|
- xfs_defer_cancel(args->trans);
|
|
|
|
- return error;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -864,7 +858,7 @@ restart:
|
|
state = NULL;
|
|
state = NULL;
|
|
error = xfs_attr3_leaf_to_node(args);
|
|
error = xfs_attr3_leaf_to_node(args);
|
|
if (error)
|
|
if (error)
|
|
- goto out_defer_cancel;
|
|
|
|
|
|
+ goto out;
|
|
error = xfs_defer_finish(&args->trans);
|
|
error = xfs_defer_finish(&args->trans);
|
|
if (error)
|
|
if (error)
|
|
goto out;
|
|
goto out;
|
|
@@ -888,7 +882,7 @@ restart:
|
|
*/
|
|
*/
|
|
error = xfs_da3_split(state);
|
|
error = xfs_da3_split(state);
|
|
if (error)
|
|
if (error)
|
|
- goto out_defer_cancel;
|
|
|
|
|
|
+ goto out;
|
|
error = xfs_defer_finish(&args->trans);
|
|
error = xfs_defer_finish(&args->trans);
|
|
if (error)
|
|
if (error)
|
|
goto out;
|
|
goto out;
|
|
@@ -984,7 +978,7 @@ restart:
|
|
if (retval && (state->path.active > 1)) {
|
|
if (retval && (state->path.active > 1)) {
|
|
error = xfs_da3_join(state);
|
|
error = xfs_da3_join(state);
|
|
if (error)
|
|
if (error)
|
|
- goto out_defer_cancel;
|
|
|
|
|
|
+ goto out;
|
|
error = xfs_defer_finish(&args->trans);
|
|
error = xfs_defer_finish(&args->trans);
|
|
if (error)
|
|
if (error)
|
|
goto out;
|
|
goto out;
|
|
@@ -1013,9 +1007,6 @@ out:
|
|
if (error)
|
|
if (error)
|
|
return error;
|
|
return error;
|
|
return retval;
|
|
return retval;
|
|
-out_defer_cancel:
|
|
|
|
- xfs_defer_cancel(args->trans);
|
|
|
|
- goto out;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -1107,7 +1098,7 @@ xfs_attr_node_removename(
|
|
if (retval && (state->path.active > 1)) {
|
|
if (retval && (state->path.active > 1)) {
|
|
error = xfs_da3_join(state);
|
|
error = xfs_da3_join(state);
|
|
if (error)
|
|
if (error)
|
|
- goto out_defer_cancel;
|
|
|
|
|
|
+ goto out;
|
|
error = xfs_defer_finish(&args->trans);
|
|
error = xfs_defer_finish(&args->trans);
|
|
if (error)
|
|
if (error)
|
|
goto out;
|
|
goto out;
|
|
@@ -1138,7 +1129,7 @@ xfs_attr_node_removename(
|
|
error = xfs_attr3_leaf_to_shortform(bp, args, forkoff);
|
|
error = xfs_attr3_leaf_to_shortform(bp, args, forkoff);
|
|
/* bp is gone due to xfs_da_shrink_inode */
|
|
/* bp is gone due to xfs_da_shrink_inode */
|
|
if (error)
|
|
if (error)
|
|
- goto out_defer_cancel;
|
|
|
|
|
|
+ goto out;
|
|
error = xfs_defer_finish(&args->trans);
|
|
error = xfs_defer_finish(&args->trans);
|
|
if (error)
|
|
if (error)
|
|
goto out;
|
|
goto out;
|
|
@@ -1150,9 +1141,6 @@ xfs_attr_node_removename(
|
|
out:
|
|
out:
|
|
xfs_da_state_free(state);
|
|
xfs_da_state_free(state);
|
|
return error;
|
|
return error;
|
|
-out_defer_cancel:
|
|
|
|
- xfs_defer_cancel(args->trans);
|
|
|
|
- goto out;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|