Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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/20240424191914.361554-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Matthew Wilcox (Oracle) and committed by
Andrew Morton
6785c54a 3f2ae4eb

+1 -6
+1 -6
include/linux/mm.h
··· 1457 1457 } 1458 1458 #endif /* CONFIG_ZONE_DEVICE && CONFIG_FS_DAX */ 1459 1459 1460 - static inline bool put_devmap_managed_page(struct page *page) 1461 - { 1462 - return put_devmap_managed_page_refs(page, 1); 1463 - } 1464 - 1465 1460 /* 127: arbitrary random number, small enough to assemble well */ 1466 1461 #define folio_ref_zero_or_close_to_overflow(folio) \ 1467 1462 ((unsigned int) folio_ref_count(folio) + 127u <= 127u) ··· 1575 1580 * For some devmap managed pages we need to catch refcount transition 1576 1581 * from 2 to 1: 1577 1582 */ 1578 - if (put_devmap_managed_page(&folio->page)) 1583 + if (put_devmap_managed_page_refs(&folio->page, 1)) 1579 1584 return; 1580 1585 folio_put(folio); 1581 1586 }