find_lock_entry(9)

find_lock_entry9

Locate, pin and lock a page cache entry

Usage

struct page * find_lock_entry(struct address_space * mapping, pgoff_t offset);

Arguments

mapping

the address_space to search

offset

the page cache index

Overview

Looks up the page cache slot at mapping & offset. If there is a page cache page, it is returned locked and with an increased refcount.

If the slot holds a shadow entry of a previously evicted page, or a swap entry from shmem/tmpfs, it is returned.

Otherwise, NULL is returned.

find_lock_entry may sleep.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

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