mbox series

[0/6] Some random fixes and cleanups to mm/swapfile.c

Message ID 20250222160850.505274-1-shikemeng@huaweicloud.com (mailing list archive)
Headers show
Series Some random fixes and cleanups to mm/swapfile.c | expand

Message

Kemeng Shi Feb. 22, 2025, 4:08 p.m. UTC
This series includes several random fixes and cleanups to the mm/swapfile.c
code. The issues were discovered during code review and can only manifest
under extremely rare and race-condition scenarios. Further details about
each fix can be found in the respective patches. Thanks for your
attention!

Kemeng Shi (6):
  mm: swap: avoid losting cluster in swap_reclaim_full_clusters()
  mm: swap: use correct step in loop to wait all clusters in
    wait_for_allocation()
  mm, swap: avoid BUG_ON in relocate_cluster()
  mm, swap: remove setting SWAP_MAP_BAD for discard cluster
  mm, swap: correct comment in swap_usage_sub()
  mm: swap: remove stale comment of swap_reclaim_full_clusters()

 mm/swapfile.c | 22 +++++++---------------
 1 file changed, 7 insertions(+), 15 deletions(-)