[PATCH 3/3] mm: Remove unmap_and_put_page()

Vishal Moola (Oracle) posted 3 patches 2 months, 4 weeks ago
[PATCH 3/3] mm: Remove unmap_and_put_page()
Posted by Vishal Moola (Oracle) 2 months, 4 weeks ago
There are no callers of unmap_and_put_page() left. Remove it.

Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
---
 include/linux/highmem.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/include/linux/highmem.h b/include/linux/highmem.h
index a30526cc53a7..6234f316468c 100644
--- a/include/linux/highmem.h
+++ b/include/linux/highmem.h
@@ -682,10 +682,4 @@ static inline void folio_release_kmap(struct folio *folio, void *addr)
 	kunmap_local(addr);
 	folio_put(folio);
 }
-
-static inline void unmap_and_put_page(struct page *page, void *addr)
-{
-	folio_release_kmap(page_folio(page), addr);
-}
-
 #endif /* _LINUX_HIGHMEM_H */
-- 
2.50.0
Re: [PATCH 3/3] mm: Remove unmap_and_put_page()
Posted by David Hildenbrand 2 months, 4 weeks ago
On 09.07.25 21:40, Vishal Moola (Oracle) wrote:
> There are no callers of unmap_and_put_page() left. Remove it.
> 
> Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
> ---
>   include/linux/highmem.h | 6 ------
>   1 file changed, 6 deletions(-)
> 
> diff --git a/include/linux/highmem.h b/include/linux/highmem.h
> index a30526cc53a7..6234f316468c 100644
> --- a/include/linux/highmem.h
> +++ b/include/linux/highmem.h
> @@ -682,10 +682,4 @@ static inline void folio_release_kmap(struct folio *folio, void *addr)
>   	kunmap_local(addr);
>   	folio_put(folio);
>   }
> -
> -static inline void unmap_and_put_page(struct page *page, void *addr)
> -{
> -	folio_release_kmap(page_folio(page), addr);
> -}
> -
>   #endif /* _LINUX_HIGHMEM_H */

Acked-by: David Hildenbrand <david@redhat.com>

-- 
Cheers,

David / dhildenb