free_devmap_managed_page has nothing to do with the code in swap.c, move it to live with the rest of the code for devmap handling. Link: https://lkml.kernel.org/r/20220210072828.2930359-5-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Logan Gunthorpe <logang@deltatee.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Tested-by: "Sierra Guiza, Alejandro (Alex)" <alex.sierra@amd.com>
Showing the changes to include (1 of 3 files). Show all
Unified · Split
| @@ -1092,7 +1092,6 @@ static inline bool is_zone_movable_page(const struct page *page) · 1091 unmodified lines | ||
| 1092 | 1092 | } |
| 1093 | 1093 | |
| 1094 | 1094 | #ifdef CONFIG_DEV_PAGEMAP_OPS |
| 1095 | −void free_devmap_managed_page(struct page *page); | |
| 1096 | 1095 | DECLARE_STATIC_KEY_FALSE(devmap_managed_key); |
| 1097 | 1096 | |
| 1098 | 1097 | static inline bool page_is_devmap_managed(struct page *page) |