1GRAB_CACHE_PAGE_NOWA(9) Memory Management in Linux GRAB_CACHE_PAGE_NOWA(9)
2
3
4
6 grab_cache_page_nowait - returns locked page at given index in given
7 cache
8
10 struct page * grab_cache_page_nowait(struct address_space * mapping,
11 pgoff_t index);
12
14 mapping
15 target address_space
16
17 index
18 the page index
19
21 Same as grab_cache_page, but do not wait if the page is unavailable.
22 This is intended for speculative data generators, where the data can be
23 regenerated if the page couldn't be grabbed. This routine should be
24 safe to call while holding the lock for another page.
25
26 Clear __GFP_FS when allocating the page to avoid recursion into the fs
27 and deadlock against the caller's locked page.
28
30Kernel Hackers Manual 2.6. November 2011 GRAB_CACHE_PAGE_NOWA(9)