]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm, swap: remove setting SWAP_MAP_BAD for discard cluster
authorKemeng Shi <shikemeng@huaweicloud.com>
Sat, 22 Feb 2025 16:08:48 +0000 (00:08 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:50:27 +0000 (21:50 -0800)
commit75295b9dc2834791643cadedbede508c2f8b331f
tree6bfb9ebd7924ef6295219bd49734c97296114790
parent8cba1c61017f16c908d269b8dd6410a371cb6cfd
mm, swap: remove setting SWAP_MAP_BAD for discard cluster

Before alloc from a cluster, we will aqcuire cluster's lock and make sure
it is usable by cluster_is_usable(), so there is no need to set
SWAP_MAP_BAD for cluster to be discarded.

Link: https://lkml.kernel.org/r/20250222160850.505274-5-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Kairui Song <kasong@tencent.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c