diff options
author | Christoph Hellwig <hch@lst.de> | 2019-06-13 22:50:49 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-07-02 19:32:43 +0200 |
commit | 25b2995a35b609119cf96f6b62eccd56c0234c7d (patch) | |
tree | 308e7083b213b09ac1c8c5bcf08e42044efd9fcd /mm/swap.c | |
parent | mm: remove the struct hmm_device infrastructure (diff) | |
download | linux-25b2995a35b609119cf96f6b62eccd56c0234c7d.tar.xz linux-25b2995a35b609119cf96f6b62eccd56c0234c7d.zip |
mm: remove MEMORY_DEVICE_PUBLIC support
The code hasn't been used since it was added to the tree, and doesn't
appear to actually be usable.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Tested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r-- | mm/swap.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/mm/swap.c b/mm/swap.c index 7ede3eddc12a..83107410d29f 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -740,17 +740,6 @@ void release_pages(struct page **pages, int nr) if (is_huge_zero_page(page)) continue; - /* Device public page can not be huge page */ - if (is_device_public_page(page)) { - if (locked_pgdat) { - spin_unlock_irqrestore(&locked_pgdat->lru_lock, - flags); - locked_pgdat = NULL; - } - put_devmap_managed_page(page); - continue; - } - page = compound_head(page); if (!put_page_testzero(page)) continue; |