Home
last modified time | relevance | path

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

/linux/mm/
H A Dhuge_memory.c85 static atomic_t huge_zero_refcount; variable
319 if (likely(atomic_inc_not_zero(&huge_zero_refcount))) in get_huge_zero_folio()
330 atomic_inc(&huge_zero_refcount); in get_huge_zero_folio()
338 atomic_set_release(&huge_zero_refcount, 2); in get_huge_zero_folio()
351 WARN_ON_ONCE(atomic_dec_and_test(&huge_zero_refcount)); in put_huge_zero_folio()
358 return atomic_read(&huge_zero_refcount) == 1 ? HPAGE_PMD_NR : 0; in shrink_huge_zero_folio_count()
369 if (atomic_cmpxchg(&huge_zero_refcount, 1, 0) != 1) in shrink_huge_zero_folio_scan()