Skip to content

Commit 2ef52d5

Browse files
Kefeng Wangakpm00
authored andcommitted
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/[email protected] Signed-off-by: Kefeng Wang <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 6e49019 commit 2ef52d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mm/swap_state.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,7 @@ struct folio *__read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask,
470470
* before marking swap_map SWAP_HAS_CACHE, when -EEXIST will
471471
* cause any racers to loop around until we add it to cache.
472472
*/
473-
folio = (struct folio *)alloc_pages_mpol(gfp_mask, 0,
474-
mpol, ilx, numa_node_id());
473+
folio = folio_alloc_mpol(gfp_mask, 0, mpol, ilx, numa_node_id());
475474
if (!folio)
476475
goto fail_put_swap;
477476

0 commit comments

Comments
 (0)