read_cache_page_gfp(9)

read_cache_page_gfp9

Read into page cache, using specified page allocation flags.

Usage

struct page * read_cache_page_gfp(struct address_space * mapping, pgoff_t index, gfp_t gfp);

Arguments

mapping

the page's address_space

index

the page index

gfp

the page allocator flags to use if allocating

Overview

This is the same as “read_mapping_page(mapping, index, NULL)”, but with any new page allocations done using the specified allocation flags.

If the page does not get brought uptodate, return -EIO.

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.