summaryrefslogtreecommitdiff
path: root/lib/sort.c
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2022-02-04 19:44:40 +0300
committerVlastimil Babka <vbabka@suse.cz>2022-04-06 11:57:38 +0300
commit0cd1a02901858049d14b5b9d4c5c680b012c8cc1 (patch)
tree164f4beeb9e22b9b6126c6c36496da6e3d4c90d5 /lib/sort.c
parenta5f1783be29adae15666fd803efd7d2979130869 (diff)
downloadlinux-0cd1a02901858049d14b5b9d4c5c680b012c8cc1.tar.xz
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 <vbabka@suse.cz> Reviewed-and-tested-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Acked-by: David Rientjes <rientjes@google.com>
Diffstat (limited to 'lib/sort.c')
0 files changed, 0 insertions, 0 deletions