centos man page for truncate_pagecache

Query: truncate_pagecache

OS: centos

Section: 9

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

TRUNCATE_PAGECACHE(9)					    Memory Management in Linux					     TRUNCATE_PAGECACHE(9)

NAME
truncate_pagecache - unmap and remove pagecache that has been truncated
SYNOPSIS
void truncate_pagecache(struct inode * inode, loff_t oldsize, loff_t newsize);
ARGUMENTS
inode inode oldsize old file size newsize new file size
DESCRIPTION
inode's new i_size must already be written before truncate_pagecache is called. This function should typically be called before the filesystem releases resources associated with the freed range (eg. deallocates blocks). This way, pagecache will always stay logically coherent with on-disk format, and the filesystem would not have to deal with situations such as writepage being called for a page that has already had its underlying blocks deallocated.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 TRUNCATE_PAGECACHE(9)
Related Man Pages
matchpathcon_checkmatches(3) - debian
matchpathcon_filespec_add(3) - debian
matchpathcon_checkmatches(3) - centos
matchpathcon_filespec_add(3) - centos
mremap(2) - netbsd
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
How to increment version inside a file?
DB2 convert digits to binary format
CentOS7 restoring file capabilities
[TIP] Processing YAML files with yq