projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43e9bbc
)
mm, swap: correct comment in swap_usage_sub()
author
Kemeng Shi
<shikemeng@huaweicloud.com>
Sat, 22 Feb 2025 16:08:49 +0000
(
00:08
+0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 17 Mar 2025 05:06:40 +0000
(22:06 -0700)
We will add si back to plist in swap_usage_sub(), just correct the wrong
comment which says we will remove si from plist in swap_usage_sub().
Link:
https://lkml.kernel.org/r/20250222160850.505274-6-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Cc: Kairui Song <ryncsn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/swapfile.c
b/mm/swapfile.c
index 80e4ad24fe53ca296195c292ff890832e6dc0461..dc9f93b66f694b13995c4ef6896bad92abcf93cc 100644
(file)
--- a/
mm/swapfile.c
+++ b/
mm/swapfile.c
@@
-1098,7
+1098,7
@@
static void swap_usage_sub(struct swap_info_struct *si, unsigned int nr_entries)
/*
* If device is not full, and SWAP_USAGE_OFFLIST_BIT is set,
- *
remove it from
the plist.
+ *
add it to
the plist.
*/
if (unlikely(val & SWAP_USAGE_OFFLIST_BIT))
add_to_avail_list(si, false);