diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-09-02 21:46:00 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-10-03 23:02:45 +0200 |
commit | d788f5b374c2ba204fed57e39acf2452acc24812 (patch) | |
tree | 093b3289a56ac413dc8572d8dbb7f412579975ee /mm/shmem.c | |
parent | mm: reimplement folio_order() and folio_nr_pages() (diff) | |
download | linux-d788f5b374c2ba204fed57e39acf2452acc24812.tar.xz linux-d788f5b374c2ba204fed57e39acf2452acc24812.zip |
mm: add split_folio()
This wrapper removes a need to use split_huge_page(&folio->page). Convert
two callers.
Link: https://lkml.kernel.org/r/20220902194653.1739778-5-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/shmem.c')
-rw-r--r-- | mm/shmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 42e5888bf84d..674bde8b3085 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -629,7 +629,7 @@ next: goto move_back; } - ret = split_huge_page(&folio->page); + ret = split_folio(folio); folio_unlock(folio); folio_put(folio); |