diff options
author | Matthew Wilcox (Oracle) | 2022-06-17 18:50:18 +0100 |
---|---|---|
committer | akpm | 2022-07-03 18:08:48 -0700 |
commit | b98c359f1d921deae04bb5dbbbbbb9d8705b7c4c (patch) | |
tree | a415f6a7add769a0eecc798633fd8612214c7c8d /mm/vmscan.c | |
parent | 5375336c8c42a343c3b440b6f1e21c65e7b174b9 (diff) |
mm: convert page_swap_flags to folio_swap_flags
The only caller already has a folio, so push the folio->page conversion
down a level.
Link: https://lkml.kernel.org/r/20220617175020.717127-21-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index e660d7205f47..13a28b94cd56 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1572,7 +1572,7 @@ static bool may_enter_fs(struct folio *folio, gfp_t gfp_mask) * but that will never affect SWP_FS_OPS, so the data_race * is safe. */ - return !data_race(page_swap_flags(&folio->page) & SWP_FS_OPS); + return !data_race(folio_swap_flags(folio) & SWP_FS_OPS); } /* |