Lines Matching defs:refcount
1305 * gets returned with a refcount of 0.
1310 int refcount;
1325 * refcount here, then the following race may occur:
1333 * !refcount(folio) [good, discard it]
1344 refcount = 1 + folio_nr_pages(folio);
1345 if (!folio_ref_freeze(folio, refcount))
1349 folio_ref_unfreeze(folio, refcount);
1413 * Context: The caller should have a single refcount on the folio and
1420 * Unfreezing the refcount with 1 effectively
2000 * (refcount == 1) it can be freed. Otherwise, leave
2349 * (1) Must be called with an elevated refcount on the folio. This is a