centos man page for replace_page_cache_page

Query: replace_page_cache_page

OS: centos

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

REPLACE_PAGE_CACHE_P(9) 				    Memory Management in Linux					   REPLACE_PAGE_CACHE_P(9)

NAME
replace_page_cache_page - replace a pagecache page with a new one
SYNOPSIS
int replace_page_cache_page(struct page * old, struct page * new, gfp_t gfp_mask);
ARGUMENTS
old page to be replaced new page to replace with gfp_mask allocation mode
DESCRIPTION
This function replaces a page in the pagecache with a new one. On success it acquires the pagecache reference for the new page and drops it for the old page. Both the old and new pages must be locked. This function does not add the new page to the LRU, the caller must do that. The remove + add is atomic. The only way this function can fail is memory allocation failure.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 REPLACE_PAGE_CACHE_P(9)
Related Man Pages
__get_user_pages(9) - centos
get_user_pages(9) - suse
journal_try_to_free_buffers(9) - suse
vm_page_insert(9) - freebsd
vm_page_remove(9) - freebsd
Similar Topics in the Unix Linux Community
Weird 'find' results
Best performance UNIX just for HOST Virtualization?
Shopt -s histappend
[TIP] Processing YAML files with yq
Please Welcome Dave Munro to the Moderator Team!