1TRUNCATE_PAGECACHE_R(9)   Memory Management in Linux   TRUNCATE_PAGECACHE_R(9)
2
3
4

NAME

6       truncate_pagecache_range - unmap and remove pagecache that is
7       hole-punched
8

SYNOPSIS

10       void truncate_pagecache_range(struct inode * inode, loff_t lstart,
11                                     loff_t lend);
12

ARGUMENTS

14       inode
15           inode
16
17       lstart
18           offset of beginning of hole
19
20       lend
21           offset of last byte of hole
22

DESCRIPTION

24       This function should typically be called before the filesystem releases
25       resources associated with the freed range (eg. deallocates blocks).
26       This way, pagecache will always stay logically coherent with on-disk
27       format, and the filesystem would not have to deal with situations such
28       as writepage being called for a page that has already had its
29       underlying blocks deallocated.
30
32Kernel Hackers Manual 2.6.         June 2019           TRUNCATE_PAGECACHE_R(9)
Impressum