mm: deduplicate cacheline padding code
authorShakeel Butt <shakeelb@google.com>
Fri, 26 Aug 2022 23:06:42 +0000 (23:06 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Sep 2022 02:46:29 +0000 (19:46 -0700)
commite6ad640bc404eb298dd1880113131768ddf5c6a8
treef72c01caf19e88d74482af862b9378f6f19893b9
parent974f4367dd315acc15ad4a6453f8304aea60dfbd
mm: deduplicate cacheline padding code

There are three users (mmzone.h, memcontrol.h, page_counter.h) using
similar code for forcing cacheline padding between fields of different
structures.  Dedup that code.

Link: https://lkml.kernel.org/r/20220826230642.566725-1-shakeelb@google.com
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Suggested-by: Feng Tang <feng.tang@intel.com>
Reviewed-by: Feng Tang <feng.tang@intel.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/cache.h
include/linux/memcontrol.h
include/linux/mmzone.h
include/linux/page_counter.h