centos man page for truncate_pagecache_range

Query: truncate_pagecache_range

OS: centos

Section: 9

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

TRUNCATE_PAGECACHE_R(9) 				    Memory Management in Linux					   TRUNCATE_PAGECACHE_R(9)

NAME
truncate_pagecache_range - unmap and remove pagecache that is hole-punched
SYNOPSIS
void truncate_pagecache_range(struct inode * inode, loff_t lstart, loff_t lend);
ARGUMENTS
inode inode lstart offset of beginning of hole lend offset of last byte of hole
DESCRIPTION
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_R(9)
Related Man Pages
fallocate(1) - mojave
fallocate(1) - opensolaris
fallocate(1) - x11r4
fallocate(1) - xfree86
fallocate(1) - posix
Similar Topics in the Unix Linux Community
Best performance UNIX just for HOST Virtualization?
Tar Command
CentOS7 restoring file capabilities
[TIP] Processing YAML files with yq
Please Welcome Dave Munro to the Moderator Team!