File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -709,6 +709,14 @@ xfs_attr_leaf_addname(
709
709
* Added a "remote" value, just clear the incomplete flag.
710
710
*/
711
711
error = xfs_attr3_leaf_clearflag (args );
712
+ if (error )
713
+ return error ;
714
+
715
+ /*
716
+ * Commit the flag value change and start the next trans in
717
+ * series.
718
+ */
719
+ error = xfs_trans_roll_inode (& args -> trans , args -> dp );
712
720
}
713
721
return error ;
714
722
}
@@ -1067,6 +1075,14 @@ xfs_attr_node_addname(
1067
1075
error = xfs_attr3_leaf_clearflag (args );
1068
1076
if (error )
1069
1077
goto out ;
1078
+
1079
+ /*
1080
+ * Commit the flag value change and start the next trans in
1081
+ * series.
1082
+ */
1083
+ error = xfs_trans_roll_inode (& args -> trans , args -> dp );
1084
+ if (error )
1085
+ goto out ;
1070
1086
}
1071
1087
retval = error = 0 ;
1072
1088
Original file line number Diff line number Diff line change @@ -2782,10 +2782,7 @@ xfs_attr3_leaf_clearflag(
2782
2782
XFS_DA_LOGRANGE (leaf , name_rmt , sizeof (* name_rmt )));
2783
2783
}
2784
2784
2785
- /*
2786
- * Commit the flag value change and start the next trans in series.
2787
- */
2788
- return xfs_trans_roll_inode (& args -> trans , args -> dp );
2785
+ return 0 ;
2789
2786
}
2790
2787
2791
2788
/*
You can’t perform that action at this time.
0 commit comments