GRAB_CACHE_PAGE_NOWA(9) Memory Management in Linux GRAB_CACHE_PAGE_NOWA(9)NAMEgrab_cache_page_nowait - returns locked page at given index in given
cache
SYNOPSIS
struct page * grab_cache_page_nowait(struct address_space * mapping,
pgoff_t index);
ARGUMENTS
mapping
target address_space
index
the page index
DESCRIPTION
Same as grab_cache_page, but do not wait if the page is unavailable.
This is intended for speculative data generators, where the data can be
regenerated if the page couldnĀ“t be grabbed. This routine should be
safe to call while holding the lock for another page.
Clear __GFP_FS when allocating the page to avoid recursion into the fs
and deadlock against the callerĀ“s locked page.
COPYRIGHTKernel Hackers Manual 2.6. November 2013 GRAB_CACHE_PAGE_NOWA(9)