summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorGregory Price <gourry.memverge@gmail.com>2024-02-02 20:02:36 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-02-22 21:24:46 +0300
commit9685e6e30d116d72fb013b0bce261a676b7575c1 (patch)
tree2cd0bac3b51a8d02741dc60d50bb90fea6259907 /samples
parentdce41f5ae2539d1c20ae8de4e039630aec3c3f3c (diff)
downloadlinux-9685e6e30d116d72fb013b0bce261a676b7575c1.tar.xz
mm/mempolicy: refactor a read-once mechanism into a function for re-use
Move the use of barrier() to force policy->nodemask onto the stack into a function `read_once_policy_nodemask` so that it may be re-used. Link: https://lkml.kernel.org/r/20240202170238.90004-3-gregory.price@memverge.com Signed-off-by: Gregory Price <gregory.price@memverge.com> Suggested-by: "Huang, Ying" <ying.huang@intel.com> Reviewed-by: "Huang, Ying" <ying.huang@intel.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Hasan Al Maruf <Hasan.Maruf@amd.com> Cc: Honggyu Kim <honggyu.kim@sk.com> Cc: Hyeongtak Ji <hyeongtak.ji@sk.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Michal Hocko <mhocko@kernel.org> Cc: Rakie Kim <rakie.kim@sk.com> Cc: Ravi Jonnalagadda <ravis.opensrc@micron.com> Cc: Srinivasulu Thanneeru <sthanneeru.opensrc@micron.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions