---
name: "grab_cache_page_nowait"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/grab_cache_page_nowait"
---

# grab\_cache\_page\_nowait(9)

returns locked page at given index in given cache

## NAME

grab\_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.

## COPYRIGHT
