|
@@ -1019,9 +1019,10 @@ xfs_trans_cancel(
|
|
|
* chunk we've been working on and get a new transaction to continue.
|
|
|
*/
|
|
|
int
|
|
|
-xfs_trans_roll(
|
|
|
+__xfs_trans_roll(
|
|
|
struct xfs_trans **tpp,
|
|
|
- struct xfs_inode *dp)
|
|
|
+ struct xfs_inode *dp,
|
|
|
+ int *committed)
|
|
|
{
|
|
|
struct xfs_trans *trans;
|
|
|
struct xfs_trans_res tres;
|
|
@@ -1052,6 +1053,7 @@ xfs_trans_roll(
|
|
|
if (error)
|
|
|
return error;
|
|
|
|
|
|
+ *committed = 1;
|
|
|
trans = *tpp;
|
|
|
|
|
|
/*
|
|
@@ -1074,3 +1076,12 @@ xfs_trans_roll(
|
|
|
xfs_trans_ijoin(trans, dp, 0);
|
|
|
return 0;
|
|
|
}
|
|
|
+
|
|
|
+int
|
|
|
+xfs_trans_roll(
|
|
|
+ struct xfs_trans **tpp,
|
|
|
+ struct xfs_inode *dp)
|
|
|
+{
|
|
|
+ int committed = 0;
|
|
|
+ return __xfs_trans_roll(tpp, dp, &committed);
|
|
|
+}
|