Commit 97835e6
xfs: fix xfs_init_attr_trans not handling explicit operation codes
When we were converting the attr code to use an explicit operation code
instead of keying off of attr->value being null, we forgot to change the
code that initializes the transaction reservation. Split the function
into two helpers that handle the !remove and remove cases, then fix both
callsites to handle this correctly.
Fixes: c27411d ("xfs: make attr removal an explicit operation")
Signed-off-by: "Darrick J. Wong" <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Chandan Babu R <[email protected]>1 parent 2b3f004 commit 97835e6
3 files changed
+35
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
338 | 336 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
352 | 346 | | |
353 | 347 | | |
354 | 348 | | |
| |||
1006 | 1000 | | |
1007 | 1001 | | |
1008 | 1002 | | |
1009 | | - | |
| 1003 | + | |
1010 | 1004 | | |
1011 | 1005 | | |
1012 | 1006 | | |
| |||
1033 | 1027 | | |
1034 | 1028 | | |
1035 | 1029 | | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1036 | 1033 | | |
1037 | 1034 | | |
1038 | 1035 | | |
1039 | 1036 | | |
| 1037 | + | |
| 1038 | + | |
1040 | 1039 | | |
1041 | 1040 | | |
1042 | 1041 | | |
1043 | 1042 | | |
1044 | 1043 | | |
1045 | 1044 | | |
1046 | 1045 | | |
1047 | | - | |
1048 | 1046 | | |
1049 | 1047 | | |
1050 | 1048 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
569 | | - | |
| 568 | + | |
570 | 569 | | |
571 | 570 | | |
572 | 571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
| 749 | + | |
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
766 | | - | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
767 | 780 | | |
768 | 781 | | |
769 | 782 | | |
| |||
0 commit comments