aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_attr.c')
-rw-r--r--fs/xfs/xfs_attr.c30
1 files changed, 20 insertions, 10 deletions
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c
index ffa634d1c18c..f7cdc28aff41 100644
--- a/fs/xfs/xfs_attr.c
+++ b/fs/xfs/xfs_attr.c
@@ -400,7 +400,9 @@ xfs_attr_set_int(xfs_inode_t *dp, struct xfs_name *name,
400 * Commit the leaf transformation. We'll need another (linked) 400 * Commit the leaf transformation. We'll need another (linked)
401 * transaction to add the new attribute to the leaf. 401 * transaction to add the new attribute to the leaf.
402 */ 402 */
403 if ((error = xfs_attr_rolltrans(&args.trans, dp))) 403
404 error = xfs_trans_roll(&args.trans, dp);
405 if (error)
404 goto out; 406 goto out;
405 407
406 } 408 }
@@ -980,7 +982,8 @@ xfs_attr_leaf_addname(xfs_da_args_t *args)
980 * Commit the current trans (including the inode) and start 982 * Commit the current trans (including the inode) and start
981 * a new one. 983 * a new one.
982 */ 984 */
983 if ((error = xfs_attr_rolltrans(&args->trans, dp))) 985 error = xfs_trans_roll(&args->trans, dp);
986 if (error)
984 return (error); 987 return (error);
985 988
986 /* 989 /*
@@ -994,7 +997,8 @@ xfs_attr_leaf_addname(xfs_da_args_t *args)
994 * Commit the transaction that added the attr name so that 997 * Commit the transaction that added the attr name so that
995 * later routines can manage their own transactions. 998 * later routines can manage their own transactions.
996 */ 999 */
997 if ((error = xfs_attr_rolltrans(&args->trans, dp))) 1000 error = xfs_trans_roll(&args->trans, dp);
1001 if (error)
998 return (error); 1002 return (error);
999 1003
1000 /* 1004 /*
@@ -1083,7 +1087,7 @@ xfs_attr_leaf_addname(xfs_da_args_t *args)
1083 /* 1087 /*
1084 * Commit the remove and start the next trans in series. 1088 * Commit the remove and start the next trans in series.
1085 */ 1089 */
1086 error = xfs_attr_rolltrans(&args->trans, dp); 1090 error = xfs_trans_roll(&args->trans, dp);
1087 1091
1088 } else if (args->rmtblkno > 0) { 1092 } else if (args->rmtblkno > 0) {
1089 /* 1093 /*
@@ -1314,7 +1318,8 @@ restart:
1314 * Commit the node conversion and start the next 1318 * Commit the node conversion and start the next
1315 * trans in the chain. 1319 * trans in the chain.
1316 */ 1320 */
1317 if ((error = xfs_attr_rolltrans(&args->trans, dp))) 1321 error = xfs_trans_roll(&args->trans, dp);
1322 if (error)
1318 goto out; 1323 goto out;
1319 1324
1320 goto restart; 1325 goto restart;
@@ -1365,7 +1370,8 @@ restart:
1365 * Commit the leaf addition or btree split and start the next 1370 * Commit the leaf addition or btree split and start the next
1366 * trans in the chain. 1371 * trans in the chain.
1367 */ 1372 */
1368 if ((error = xfs_attr_rolltrans(&args->trans, dp))) 1373 error = xfs_trans_roll(&args->trans, dp);
1374 if (error)
1369 goto out; 1375 goto out;
1370 1376
1371 /* 1377 /*
@@ -1465,7 +1471,8 @@ restart:
1465 /* 1471 /*
1466 * Commit and start the next trans in the chain. 1472 * Commit and start the next trans in the chain.
1467 */ 1473 */
1468 if ((error = xfs_attr_rolltrans(&args->trans, dp))) 1474 error = xfs_trans_roll(&args->trans, dp);
1475 if (error)
1469 goto out; 1476 goto out;
1470 1477
1471 } else if (args->rmtblkno > 0) { 1478 } else if (args->rmtblkno > 0) {
@@ -1597,7 +1604,8 @@ xfs_attr_node_removename(xfs_da_args_t *args)
1597 /* 1604 /*
1598 * Commit the Btree join operation and start a new trans. 1605 * Commit the Btree join operation and start a new trans.
1599 */ 1606 */
1600 if ((error = xfs_attr_rolltrans(&args->trans, dp))) 1607 error = xfs_trans_roll(&args->trans, dp);
1608 if (error)
1601 goto out; 1609 goto out;
1602 } 1610 }
1603 1611
@@ -2098,7 +2106,8 @@ xfs_attr_rmtval_set(xfs_da_args_t *args)
2098 /* 2106 /*
2099 * Start the next trans in the chain. 2107 * Start the next trans in the chain.
2100 */ 2108 */
2101 if ((error = xfs_attr_rolltrans(&args->trans, dp))) 2109 error = xfs_trans_roll(&args->trans, dp);
2110 if (error)
2102 return (error); 2111 return (error);
2103 } 2112 }
2104 2113
@@ -2248,7 +2257,8 @@ xfs_attr_rmtval_remove(xfs_da_args_t *args)
2248 /* 2257 /*
2249 * Close out trans and start the next one in the chain. 2258 * Close out trans and start the next one in the chain.
2250 */ 2259 */
2251 if ((error = xfs_attr_rolltrans(&args->trans, args->dp))) 2260 error = xfs_trans_roll(&args->trans, args->dp);
2261 if (error)
2252 return (error); 2262 return (error);
2253 } 2263 }
2254 return(0); 2264 return(0);