The quilt patch titled Subject: mm: memremap: delete static key devmap_managed_key has been removed from the -mm tree. Its filename was mm-meremap_pages-delete-put_devmap_managed_page_refs-fix.patch This patch was dropped because it was folded into mm-meremap_pages-delete-put_devmap_managed_page_refs.patch ------------------------------------------------------ From: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx> Subject: mm: memremap: delete static key devmap_managed_key Date: Thu, 24 Nov 2022 15:39:09 +0800 The static key devmap_managed_key has no users since we deleted put_devmap_managed_page_refs(). So delete it too. Link: https://lkml.kernel.org/r/20221124073909.15489-1-zhengqi.arch@xxxxxxxxxxxxx Signed-off-by: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx> Cc: Dan Williams <dan.j.williams@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memremap.c | 27 --------------------------- 1 file changed, 27 deletions(-) --- a/mm/memremap.c~mm-meremap_pages-delete-put_devmap_managed_page_refs-fix +++ a/mm/memremap.c @@ -38,30 +38,6 @@ unsigned long memremap_compat_align(void EXPORT_SYMBOL_GPL(memremap_compat_align); #endif -#ifdef CONFIG_FS_DAX -DEFINE_STATIC_KEY_FALSE(devmap_managed_key); -EXPORT_SYMBOL(devmap_managed_key); - -static void devmap_managed_enable_put(struct dev_pagemap *pgmap) -{ - if (pgmap->type == MEMORY_DEVICE_FS_DAX) - static_branch_dec(&devmap_managed_key); -} - -static void devmap_managed_enable_get(struct dev_pagemap *pgmap) -{ - if (pgmap->type == MEMORY_DEVICE_FS_DAX) - static_branch_inc(&devmap_managed_key); -} -#else -static void devmap_managed_enable_get(struct dev_pagemap *pgmap) -{ -} -static void devmap_managed_enable_put(struct dev_pagemap *pgmap) -{ -} -#endif /* CONFIG_FS_DAX */ - static void pgmap_array_delete(struct range *range) { xa_store_range(&pgmap_array, PHYS_PFN(range->start), PHYS_PFN(range->end), @@ -133,7 +109,6 @@ void memunmap_pages(struct dev_pagemap * percpu_ref_exit(&pgmap->ref); WARN_ONCE(pgmap->altmap.alloc, "failed to free all reserved pages\n"); - devmap_managed_enable_put(pgmap); } EXPORT_SYMBOL_GPL(memunmap_pages); @@ -333,8 +308,6 @@ void *memremap_pages(struct dev_pagemap if (error) return ERR_PTR(error); - devmap_managed_enable_get(pgmap); - /* * Clear the pgmap nr_range as it will be incremented for each * successfully processed range. This communicates how many _ Patches currently in -mm which might be from zhengqi.arch@xxxxxxxxxxxxx are mm-meremap_pages-delete-put_devmap_managed_page_refs.patch