File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -620,6 +620,13 @@ xfs_attr_leaf_addname(
620
620
* "old" attr and clear the incomplete flag on the "new" attr.
621
621
*/
622
622
error = xfs_attr3_leaf_flipflags (args );
623
+ if (error )
624
+ return error ;
625
+ /*
626
+ * Commit the flag value change and start the next trans in
627
+ * series.
628
+ */
629
+ error = xfs_trans_roll_inode (& args -> trans , args -> dp );
623
630
if (error )
624
631
return error ;
625
632
@@ -961,6 +968,13 @@ xfs_attr_node_addname(
961
968
* "old" attr and clear the incomplete flag on the "new" attr.
962
969
*/
963
970
error = xfs_attr3_leaf_flipflags (args );
971
+ if (error )
972
+ goto out ;
973
+ /*
974
+ * Commit the flag value change and start the next trans in
975
+ * series
976
+ */
977
+ error = xfs_trans_roll_inode (& args -> trans , args -> dp );
964
978
if (error )
965
979
goto out ;
966
980
Original file line number Diff line number Diff line change @@ -2951,10 +2951,5 @@ xfs_attr3_leaf_flipflags(
2951
2951
XFS_DA_LOGRANGE (leaf2 , name_rmt , sizeof (* name_rmt )));
2952
2952
}
2953
2953
2954
- /*
2955
- * Commit the flag value change and start the next trans in series.
2956
- */
2957
- error = xfs_trans_roll_inode (& args -> trans , args -> dp );
2958
-
2959
- return error ;
2954
+ return 0 ;
2960
2955
}
You can’t perform that action at this time.
0 commit comments