Skip to contentSkip to conversation

mm/mempolicy: fix comments for better documentation

PATCH Superseded Tanya Agarwal 1 participant 2 messages Sep 26, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover mm/mempolicy: fix comments for better documentation

From: Tanya Agarwal <[email protected]>

As part of my ongoing work on Linux kernel bug fixing, I was planning to focus on two key topics, one of which is memory management. While reviewing the memory management subsystem, I used aspell (extracted comments from the file) to check for spelling errors in comments. During this process, I found a minor spelling mistake. Upon correcting it, I also noticed an error in the number of policies.

Tanya Agarwal (1):
mm/mempolicy: fix comments for better documentation

 include/linux/mempolicy.h | 2 +-
 mm/mempolicy.c            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.39.2
#1 lore raw

PATCH v2 1/1 mm/mempolicy: fix comments for better documentation

From: Tanya Agarwal <[email protected]>

Fix typo in mempolicy.h and Correct the number of allowed memory policy

---
 include/linux/mempolicy.h | 2 +-
 mm/mempolicy.c            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/mempolicy.h +1 -1
index 1add16f21612..ce9885e0178a 100644
@@ -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 {
mm/mempolicy.c +1 -1
index b858e22b259d..613fdb73c404 100644
@@ -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.
  *
Signature · 1 line
2.39.2