From: Chris Li <chrisl@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>,
Kemeng Shi <shikemeng@huaweicloud.com>,
Kairui Song <kasong@tencent.com>, Nhat Pham <nphamcs@gmail.com>,
Baoquan He <bhe@redhat.com>, Barry Song <baohua@kernel.org>,
"Huang, Ying" <ying.huang@linux.alibaba.com>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Chris Li <chrisl@kernel.org>
Subject: [PATCH v3 2/2] mm: swap.h: Remove deleted field from comments
Date: Tue, 12 Aug 2025 00:10:59 -0700 [thread overview]
Message-ID: <20250812-swap-scan-list-v3-2-6d73504d267b@kernel.org> (raw)
In-Reply-To: <20250812-swap-scan-list-v3-0-6d73504d267b@kernel.org>
The comment for struct swap_info_struct.lock incorrectly mentions fields
that have already been deleted from the structure.
Updates the comments to accurately reflect the current struct
swap_info_struct.
There is no functional change.
Signed-off-by: Chris Li <chrisl@kernel.org>
---
include/linux/swap.h | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/include/linux/swap.h b/include/linux/swap.h
index a060d102e0d1..c2da85cb7fe7 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -320,11 +320,8 @@ struct swap_info_struct {
struct completion comp; /* seldom referenced */
spinlock_t lock; /*
* protect map scan related fields like
- * swap_map, lowest_bit, highest_bit,
- * inuse_pages, cluster_next,
- * cluster_nr, lowest_alloc,
- * highest_alloc, free/discard cluster
- * list. other fields are only changed
+ * swap_map, inuse_pages and all cluster
+ * lists. other fields are only changed
* at swapon/swapoff, so are protected
* by swap_lock. changing flags need
* hold this lock and swap_lock. If
--
2.43.0
next prev parent reply other threads:[~2025-08-12 7:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-12 7:10 [PATCH v3 0/2] mm/swapfile.c and swap.h cleanup Chris Li
2025-08-12 7:10 ` [PATCH v3 1/2] mm/swapfile.c: introduce function alloc_swap_scan_list() Chris Li
2025-08-12 16:56 ` Kairui Song
2025-08-13 6:13 ` Chris Li
2025-08-13 14:57 ` Nhat Pham
2025-08-12 7:10 ` Chris Li [this message]
2025-08-12 17:04 ` [PATCH v3 2/2] mm: swap.h: Remove deleted field from comments Kairui Song
2025-08-13 11:05 ` Barry Song
2025-08-13 14:58 ` Nhat Pham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250812-swap-scan-list-v3-2-6d73504d267b@kernel.org \
--to=chrisl@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=baohua@kernel.org \
--cc=bhe@redhat.com \
--cc=kasong@tencent.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nphamcs@gmail.com \
--cc=shikemeng@huaweicloud.com \
--cc=ying.huang@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).