diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2022-02-04 19:44:40 +0300 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2022-04-06 11:57:38 +0300 |
commit | 0cd1a02901858049d14b5b9d4c5c680b012c8cc1 (patch) | |
tree | 164f4beeb9e22b9b6126c6c36496da6e3d4c90d5 /lib/devres.c | |
parent | a5f1783be29adae15666fd803efd7d2979130869 (diff) | |
download | linux-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/devres.c')
0 files changed, 0 insertions, 0 deletions