mm/mempolicy: fix comments for better documentation
Subsystems (2)
PATCH 1/1 mm/mempolicy: fix comments for better documentation
From: Tanya Agarwal <[email protected]>
- Fix typo in mempolicy.h
- Correct the number of allowed memory policy
Signed-off-by Tanya Agarwal <[email protected]>
--- include/linux/mempolicy.h | 2 +- mm/mempolicy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/mempolicy.h +1 -1
@@ -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
@@ -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
Quoted 4 lines · Tanya Agarwal
From: Tanya Agarwal <[email protected]>
- Fix typo in
mempolicy.h
- Correct the number of allowed memory policy
You don't need to say 1/1 for a single patch.
Please write changelog in paragraph form. Also mention how you found the problem and include putput from the tool to find the problem.
Quoted 25 lines
Signed-off-by Tanya Agarwal <[email protected]>--- include/linux/mempolicy.h | 2 +- mm/mempolicy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)include/linux/mempolicy.h +1
-1@@ -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 +0
-0
mm/mempolicy.c line 14
Quoted 8 lines
mm/mempolicy.c +1
-1@@ -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. *
With these fixed:
Reviewed-by Shuah Khan <[email protected]>
thanks,
-- Shuah