diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2024-08-26 14:58:11 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-09-09 16:38:58 -0700 |
commit | 39e618d986e46b02d0f0efcdeb7693f65a51a917 (patch) | |
tree | b01fe989138d2544908069085ed33f835c635593 /mm/filemap.c | |
parent | 53456b7b3f4c3427ff04ae5c92e6dba1b9bfbb23 (diff) | |
download | linux-39e618d986e46b02d0f0efcdeb7693f65a51a917.tar.gz linux-39e618d986e46b02d0f0efcdeb7693f65a51a917.tar.bz2 linux-39e618d986e46b02d0f0efcdeb7693f65a51a917.zip |
mm: migrate_device: use more folio in migrate_device_unmap()
The page for migrate_device_unmap() already has a reference, so it is safe
to convert the page to folio to save a few calls to compound_head(), which
removes the last isolate_lru_page() call.
Link: https://lkml.kernel.org/r/20240826065814.1336616-4-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions