Searched refs:FOLL_PIN (Results 1 - 3 of 3) sorted by relevance

/linux-master/mm/
H A Dgup.c107 * FOLL_PIN or FOLL_GET behavior, when incrementing the folio's refcount.
109 * Either FOLL_PIN or FOLL_GET (or neither) must be set, but not both at the
115 * FOLL_PIN on large folios: folio's refcount will be incremented by
118 * FOLL_PIN on single-page folios: folio's refcount will be incremented by
123 * nor FOLL_PIN was set, that's considered failure, and furthermore,
130 if (WARN_ON_ONCE((flags & (FOLL_GET | FOLL_PIN)) == 0))
139 /* FOLL_PIN is set */
153 * Can't do FOLL_LONGTERM + FOLL_PIN gup fast path if not in a
191 if (flags & FOLL_PIN) {
213 * FOLL_PIN o
275 gup_put_folio(page_folio(page), 1, FOLL_PIN); local
[all...]
H A Dinternal.h1124 FOLL_PIN = 1 << 19, enumerator in enum:__anon80
1133 #define INTERNAL_GUP_FLAGS (FOLL_TOUCH | FOLL_TRIED | FOLL_REMOTE | FOLL_PIN | \
1165 if ((flags & (FOLL_WRITE | FOLL_PIN)) != FOLL_PIN)
H A Dhuge_memory.c1269 if (!(flags & (FOLL_GET | FOLL_PIN)))
1426 * At least one of FOLL_GET | FOLL_PIN must be set, so assert that here:
1428 if (!(flags & (FOLL_GET | FOLL_PIN)))
1696 VM_BUG_ON_PAGE((flags & FOLL_PIN) && PageAnon(page) &&

Completed in 156 milliseconds