Home
last modified time | relevance | path

Searched refs:page_ref_count (Results 1 – 19 of 19) sorted by relevance

/linux/include/trace/events/
H A Dpage_ref.h32 __entry->count = page_ref_count(page);
81 __entry->count = page_ref_count(page);
/linux/include/linux/
H A Dpage_ref.h65 static inline int page_ref_count(const struct page *page) in page_ref_count() function
89 return page_ref_count(&folio->page); in folio_ref_count()
H A Dmm.h1292 VM_BUG_ON_PAGE(page_ref_count(page) == 0, page); in put_page_testzero()
1594 if (WARN_ON_ONCE(page_ref_count(page) <= 0)) in try_get_page()
/linux/include/net/
H A Dnetmem.h235 return page_ref_count(netmem_to_page(netmem)); in netmem_ref_count()
/linux/fs/erofs/
H A Dzutil.c191 DBG_BUGON(page && page_ref_count(page) != 1); in __erofs_allocpage()
/linux/arch/powerpc/platforms/512x/
H A Dmpc512x_shared.c173 BUG_ON(page_ref_count(page) > 1); in mpc512x_free_bootmem()
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_rx.c76 if (page_ref_count(buf->page) == buf->pg_refs) { in cache_get()
267 if ((page_ref_count(buf->page) == buf->pg_refs && in get_buf()
/linux/drivers/pci/
H A Dp2pdma.c150 VM_WARN_ON_ONCE_PAGE(!page_ref_count(page), page); in p2pmem_alloc_mmap()
/linux/drivers/net/ethernet/mscc/
H A Docelot_fdma.c284 if (unlikely(page_ref_count(page) != 1 || page_is_pfmemalloc(page))) in ocelot_fdma_add_rx_frag()
/linux/net/core/
H A Dpage_pool.c807 /* Caller MUST have verified/know (page_ref_count(page) == 1) */ in page_pool_recycle_in_cache()
816 (page_ref_count(netmem_to_page(netmem)) == 1 &&
842 /* Read barrier done in page_ref_count / READ_ONCE */ in __page_pool_put_page()
H A Dsock.c3133 if (page_ref_count(pfrag->page) == 1) { in skb_page_frag_refill()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ring.c94 if (page_ref_count(rxbuf->rxdata.page) > 1) { in aq_get_rxpages()
/linux/mm/
H A Dinternal.h512 VM_BUG_ON_PAGE(page_ref_count(page), page); in set_page_refcounted()
H A Dpage_alloc.c1079 page_ref_count(page) | in page_expected_state()
1098 if (unlikely(page_ref_count(page) != 0)) in page_bad_reason()
/linux/fs/btrfs/
H A Dcompression.c212 ASSERT(page_ref_count(page) == 1); in btrfs_compr_pool_scan()
/linux/drivers/iommu/iommufd/
H A Dselftest.c1287 count = page_ref_count(pages[0]); in iommufd_test_md_check_refs()
/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf_main.c795 if (unlikely((page_ref_count(page) - pagecnt_bias) > 1)) in ixgbevf_can_reuse_rx_page()
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc.c1136 return (!page_is_pfmemalloc(page) && page_ref_count(page) == 1); in enetc_page_reusable()
/linux/kernel/trace/
H A Dring_buffer.c6546 if (page_ref_count(page) > 1 || data_page->order != buffer->subbuf_order) in ring_buffer_free_read_page()