Re: [PATCH v1 02/11] mm: migrate_device: use more folio in __migrate_device_pages()
Kefeng Wang <[email protected]>
| Newsgroups | gmane.linux.kernel.aio.general,gmane.linux.kernel.mm,gmane.linux.file-systems |
|---|---|
| Message-ID | <[email protected]> |
On 2024/4/2 23:54, Vishal Moola wrote: > On Mon, Apr 1, 2024 at 11:21 PM Kefeng Wang <[email protected]> wrote: >> >> >> >> On 2024/4/2 2:22, Vishal Moola wrote: >>> On Thu, Mar 21, 2024 at 11:27:38AM +0800, Kefeng Wang wrote: >>>> >>>> if (!newpage) { >>>> @@ -728,14 +729,13 @@ static void __migrate_device_pages(unsigned long *src_pfns, >>>> continue; >>>> } >>>> >>>> - mapping = page_mapping(page); >>>> + newfolio = page_folio(newpage); >>> >>> You could save another compound_head() call by passing the folio through >>> to migrate_vma_insert_page() and make it migrate_vma_insert_folio(), >>> since its already converted to use folios. >> >> Sure, but let's do it later, we could convert more functions in >> migrate_device.c to use folios, thanks for your review, do you > > Makes sense to me. This patch looks fine to me: > Reviewed-by: Vishal Moola (Oracle) <[email protected]> > Thanks, >> mind to help to review other patches, hope that the poison recover >> from migrate folio was merged firstly. > > I'll take a look at it, I'm not too familiar with how that code works just > yet. That's great. > >>> >>>> + folio = page_folio(page); >>>> + mapping = folio_mapping(folio); >>>> >>> -- To unsubscribe, send a message with 'unsubscribe linux-aio' in the body to [email protected]. For more info on Linux AIO, see: http://www.kvack.org/aio/ Don't email: <a href=mailto:"[email protected]">[email protected]</a>