]> git.baikalelectronics.ru Git - kernel.git/commit
swap: turn get_swap_page() into folio_alloc_swap()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 13 May 2022 03:23:02 +0000 (20:23 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:15 +0000 (07:20 -0700)
commitf1222010b169fa653dfbc31d5c75f36f467aadac
treef747a326065eb01d0e328a79751b06f464dd5292
parent8aae7c5216187ed1f8d2cf3e7ea6622b9929527e
swap: turn get_swap_page() into folio_alloc_swap()

This removes an assumption that a large folio is HPAGE_PMD_NR pages
in size.

Link: https://lkml.kernel.org/r/20220504182857.4013401-8-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/swap.h
mm/memcontrol.c
mm/shmem.c
mm/swap_slots.c
mm/swap_state.c
mm/swapfile.c