From: Tanya Agarwal Date: Thu, 26 Sep 2024 18:35:16 +0000 (+0530) Subject: mm/mempolicy: fix comments for better documentation X-Git-Tag: v6.13-rc1~99^2~197 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1cd1a4e71b61eaf8cadd15372b67ccd60a2e1a99;p=thirdparty%2Fkernel%2Flinux.git mm/mempolicy: fix comments for better documentation Fix typo in mempolicy.h and Correct the number of allowed memory policy Link: https://lkml.kernel.org/r/20240926183516.4034-2-tanyaagarwal25699@gmail.com Signed-off-by: Tanya Agarwal Reviewed-by: Shuah Khan Cc: Anup Sharma Signed-off-by: Andrew Morton --- diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 1add16f216124..ce9885e0178ad 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h @@ -47,7 +47,7 @@ struct mempolicy { atomic_t refcnt; unsigned short mode; /* See MPOL_* above */ unsigned short flags; /* See set_mempolicy() MPOL_F_* above */ - nodemask_t nodes; /* interleave/bind/perfer */ + nodemask_t nodes; /* interleave/bind/preferred/etc */ int home_node; /* Home node to use for MPOL_BIND and MPOL_PREFERRED_MANY */ union { diff --git a/mm/mempolicy.c b/mm/mempolicy.c index b646fab3e45e1..9e18a6fc30617 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -8,7 +8,7 @@ * NUMA policy allows the user to give hints in which node(s) memory should * be allocated. * - * Support four policies per VMA and per process: + * Support six policies per VMA and per process: * * The VMA policy has priority over the process policy for a page fault. *