Rechercher une page de manuel
truncate_pagecache
Langue: en
Version: October 2010 (fedora - 01/12/10)
Section: 9 (Appels noyau Linux)
NAME
truncate_pagecache - unmap and remove pagecache that has been truncatedSYNOPSIS
- void truncate_pagecache(struct inode * inode, loff_t old, loff_t new);
ARGUMENTS
inode
- inode
old
- old file offset
new
- new file offset
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
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre