]> Gentwo Git Trees - linux/.git/commit
mm: add folio_is_pci_p2pdma()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 5 Aug 2025 17:23:01 +0000 (18:23 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 13 Sep 2025 23:55:10 +0000 (16:55 -0700)
commit88df6ab2f34b60837ebdab64b2514f356d5ebb65
tree3800a6f650de524a0cb96df3cfc6d744ae4c4509
parentc995ac3aa3747ec2a0373e5f319a22e0cb31d613
mm: add folio_is_pci_p2pdma()

Reimplement is_pci_p2pdma_page() in terms of folio_is_pci_p2pdma().  Moves
the page_folio() call from inside page_pgmap() to is_pci_p2pdma_page().
This removes a page_folio() call from try_grab_folio() which already has a
folio and can pass it in.

Link: https://lkml.kernel.org/r/20250805172307.1302730-12-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memremap.h
mm/gup.c