1VMTRUNCATE(9) Memory Management in Linux VMTRUNCATE(9)
2
3
4
6 vmtruncate - unmap mappings “freed” by truncate syscall
7
9 int vmtruncate(struct inode * inode, loff_t offset);
10
12 inode
13 inode of the file used
14
15 offset
16 file offset to start truncating
17
19 NOTE! We have to be ready to update the memory sharing between the file
20 and the memory map for a potential last incomplete page. Ugly, but
21 necessary.
22
23 This function is deprecated and simple_setsize or truncate_pagecache
24 should be used instead.
25
27Kernel Hackers Manual 2.6. November 2011 VMTRUNCATE(9)