OSDN Git Service

PCI/P2PDMA: Factor out __pci_p2pdma_map_sg()
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 12 Aug 2019 17:30:44 +0000 (11:30 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Aug 2019 13:41:35 +0000 (08:41 -0500)
commit142c242e6f12196f8064beb09198838611e029db
tree582088656093f295a5376722fa38904b1e5cd3bd
parent7f73eac3a7137eabfb0c005c7ba55eb7994b9673
PCI/P2PDMA: Factor out __pci_p2pdma_map_sg()

Factor out the bus-only mapping into its own static function.  No
functional changes. The original pci_p2pdma_map_sg_attrs() will be used to
decide whether this is an appropriate way to map.

Link: https://lore.kernel.org/r/20190730163545.4915-11-logang@deltatee.com
Link: https://lore.kernel.org/r/20190812173048.9186-11-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/pci/p2pdma.c