aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2024-04-24 20:19:07 +0100
committerAndrew Morton <[email protected]>2024-05-05 17:53:49 -0700
commit6785c54a1b43c44ade9064ce46db4aa4d09e8cef (patch)
treeaa3ff135e953c50e643e370c6048b12b3f0ce6ca
parent3f2ae4ebd53b6e555455f293364e1e0d4b7530e2 (diff)
mm: remove put_devmap_managed_page()
It only has one caller; convert that caller to use put_devmap_managed_page_refs() instead. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r--include/linux/mm.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index b9ac49c9eb00..deb51f8dc283 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1457,11 +1457,6 @@ static inline bool put_devmap_managed_page_refs(struct page *page, int refs)
}
#endif /* CONFIG_ZONE_DEVICE && CONFIG_FS_DAX */
-static inline bool put_devmap_managed_page(struct page *page)
-{
- return put_devmap_managed_page_refs(page, 1);
-}
-
/* 127: arbitrary random number, small enough to assemble well */
#define folio_ref_zero_or_close_to_overflow(folio) \
((unsigned int) folio_ref_count(folio) + 127u <= 127u)
@@ -1580,7 +1575,7 @@ static inline void put_page(struct page *page)
* For some devmap managed pages we need to catch refcount transition
* from 2 to 1:
*/
- if (put_devmap_managed_page(&folio->page))
+ if (put_devmap_managed_page_refs(&folio->page, 1))
return;
folio_put(folio);
}