mirror of
https://github.com/torvalds/linux.git
synced 2024-09-20 06:53:04 +00:00
mm: swap_state: use folio_alloc_mpol() in __read_swap_cache_async()
Convert to use folio_alloc_mpol() helper() in __read_swap_cache_async(). Link: https://lkml.kernel.org/r/20240709105508.3933823-1-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
6e49019db5
commit
2ef52d5bb7
|
@ -470,8 +470,7 @@ struct folio *__read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask,
|
||||||
* before marking swap_map SWAP_HAS_CACHE, when -EEXIST will
|
* before marking swap_map SWAP_HAS_CACHE, when -EEXIST will
|
||||||
* cause any racers to loop around until we add it to cache.
|
* cause any racers to loop around until we add it to cache.
|
||||||
*/
|
*/
|
||||||
folio = (struct folio *)alloc_pages_mpol(gfp_mask, 0,
|
folio = folio_alloc_mpol(gfp_mask, 0, mpol, ilx, numa_node_id());
|
||||||
mpol, ilx, numa_node_id());
|
|
||||||
if (!folio)
|
if (!folio)
|
||||||
goto fail_put_swap;
|
goto fail_put_swap;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user