find_lock_entry — locate, pin and lock a page cache entry
|struct address_space * mapping,|
struct address_space * mapping
the address_space to search
the page cache index
Looks up the page cache slot at
offset. If there is a
page cache page, it is returned locked and with an increased
If the slot holds a shadow entry of a previously evicted page, or a swap entry from shmem/tmpfs, it is returned.
NULL is returned.
find_lock_entry may sleep.