]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm/mempolicy: fix comments for better documentation
authorTanya Agarwal <tanyaagarwal25699@gmail.com>
Thu, 26 Sep 2024 18:35:16 +0000 (00:05 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 6 Nov 2024 00:56:25 +0000 (16:56 -0800)
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 <tanyaagarwal25699@gmail.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Cc: Anup Sharma <anupnewsmail@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mempolicy.h
mm/mempolicy.c

index 1add16f216124d8e15cc55a8d009487bc0804017..ce9885e0178adfa37a7cb466102d4955a54bf587 100644 (file)
@@ -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 {
index b646fab3e45e101fd741eaba7bbdc6614e30562b..9e18a6fc30617a6201d3a6afd339237530282fe0 100644 (file)
@@ -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.
  *