]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm: swap.h: Remove deleted field from comments
authorChris Li <chrisl@kernel.org>
Tue, 12 Aug 2025 07:10:59 +0000 (00:10 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:24:57 +0000 (17:24 -0700)
The comment for struct swap_info_struct.lock incorrectly mentions fields
that have already been deleted from the structure.

Update the comments to accurately reflect the current struct
swap_info_struct.

There is no functional change.

Link: https://lkml.kernel.org/r/20250812-swap-scan-list-v3-2-6d73504d267b@kernel.org
Signed-off-by: Chris Li <chrisl@kernel.org>
Reviewed-by: Kairui Song <kasong@tencent.com>
Acked-by: Nhat Pham <nphamcs@gmail.com>
Reviewed-by: Barry Song <baohua@kernel.org>
Cc: Baoquan He <bhe@redhat.com>
Cc: "Huang, Ying" <ying.huang@linux.alibaba.com>
Cc: Kemeng Shi <shikemeng@huaweicloud.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/swap.h

index f32f76ceb243059469a9d300e0c415e99b1d5b4d..a2bb208416162fa370ee320a763bd69e56eee357 100644 (file)
@@ -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