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: NVlastimil Babka <vbabka@suse.cz> Reviewed-and-tested-by: NHyeonggon Yoo <42.hyeyoo@gmail.com> Acked-by: NDavid Rientjes <rientjes@google.com>
Showing
想要评论请 注册 或 登录