diff options
author | Christoph Hellwig <hch@lst.de> | 2021-10-28 18:10:17 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2021-12-04 23:46:09 +0300 |
commit | b80892ca022e9eb484771a66eb68e12364695a2a (patch) | |
tree | cf885643ff4806d0abacd90d2572a25621eefe80 /drivers/pci/p2pdma.c | |
parent | b842f1d14a190e217a8ee3f6dae9e1dff1817d87 (diff) | |
download | linux-b80892ca022e9eb484771a66eb68e12364695a2a.tar.xz |
memremap: remove support for external pgmap refcounts
No driver is left using the external pgmap refcount, so remove the
code to support it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20211028151017.50234-1-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/pci/p2pdma.c')
-rw-r--r-- | drivers/pci/p2pdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c index 8d47cb7218d1..454d5f6f16ff 100644 --- a/drivers/pci/p2pdma.c +++ b/drivers/pci/p2pdma.c @@ -219,7 +219,7 @@ int pci_p2pdma_add_resource(struct pci_dev *pdev, int bar, size_t size, error = gen_pool_add_owner(p2pdma->pool, (unsigned long)addr, pci_bus_address(pdev, bar) + offset, range_len(&pgmap->range), dev_to_node(&pdev->dev), - pgmap->ref); + &pgmap->ref); if (error) goto pages_free; |