From: Chris Li Date: Tue, 12 Aug 2025 07:10:59 +0000 (-0700) Subject: mm: swap.h: Remove deleted field from comments X-Git-Tag: v6.18-rc1~130^2~300 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85b8cec15034e07500a6e5b8a5aea8185a3d775a;p=thirdparty%2Fkernel%2Fstable.git mm: swap.h: Remove deleted field from comments 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 Reviewed-by: Kairui Song Acked-by: Nhat Pham Reviewed-by: Barry Song Cc: Baoquan He Cc: "Huang, Ying" Cc: Kemeng Shi Signed-off-by: Andrew Morton --- diff --git a/include/linux/swap.h b/include/linux/swap.h index a060d102e0d1c..c2da85cb7fe7d 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