Commit 0cd1a02
committed
mm/slub: move struct track init out of set_track()
set_track() either zeroes out the struct track or fills it, depending on
the addr parameter. This is unnecessary as there's only one place that
calls it for the initialization - init_tracking(). We can simply do the
zeroing there, with a single memset() that covers both TRACK_ALLOC and
TRACK_FREE as they are adjacent.
Signed-off-by: Vlastimil Babka <[email protected]>
Reviewed-and-tested-by: Hyeonggon Yoo <[email protected]>
Acked-by: David Rientjes <[email protected]>1 parent a5f1783 commit 0cd1a02
1 file changed
+15
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
732 | | - | |
733 | 732 | | |
734 | | - | |
| 733 | + | |
735 | 734 | | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
740 | 739 | | |
741 | | - | |
742 | | - | |
| 740 | + | |
| 741 | + | |
743 | 742 | | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
751 | 747 | | |
752 | 748 | | |
753 | 749 | | |
754 | 750 | | |
| 751 | + | |
| 752 | + | |
755 | 753 | | |
756 | 754 | | |
757 | 755 | | |
758 | | - | |
759 | | - | |
| 756 | + | |
| 757 | + | |
760 | 758 | | |
761 | 759 | | |
762 | 760 | | |
| |||
0 commit comments