]> 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>
Fri, 28 Feb 2025 01:00:28 +0000 (17:00 -0800)
commit5ab3a888519f453a409920468e80c89794dc4908
tree776bba097422507830054f48ebb581de4ba1c829
parent5fe7376a310849d0a905211737d51602f55f3ab6
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