* [PATCH v2 0/1] mm/mempolicy: fix comments for better documentation
@ 2024-09-26 18:35 Tanya Agarwal
2024-09-26 18:35 ` [PATCH v2] " Tanya Agarwal
0 siblings, 1 reply; 2+ messages in thread
From: Tanya Agarwal @ 2024-09-26 18:35 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, linux-mm, skhan, anupnewsmail, tanyaagarwal25699
From: Tanya Agarwal <tanyaagarwal25699@gmail.com>
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(-)
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH v2] mm/mempolicy: fix comments for better documentation
2024-09-26 18:35 [PATCH v2 0/1] mm/mempolicy: fix comments for better documentation Tanya Agarwal
@ 2024-09-26 18:35 ` Tanya Agarwal
0 siblings, 0 replies; 2+ messages in thread
From: Tanya Agarwal @ 2024-09-26 18:35 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, linux-mm, skhan, anupnewsmail, tanyaagarwal25699
From: Tanya Agarwal <tanyaagarwal25699@gmail.com>
Fix typo in mempolicy.h and Correct the number of allowed memory policy
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Tanya Agarwal <tanyaagarwal25699@gmail.com>
---
include/linux/mempolicy.h | 2 +-
mm/mempolicy.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h
index 1add16f21612..ce9885e0178a 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 b858e22b259d..613fdb73c404 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.
*
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-26 18:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-26 18:35 [PATCH v2 0/1] mm/mempolicy: fix comments for better documentation Tanya Agarwal
2024-09-26 18:35 ` [PATCH v2] " Tanya Agarwal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox