truncate_pagecache_range — unmap and remove pagecache that is hole-punched
|struct inode * inode,|
struct inode * inode
offset of beginning of hole
offset of last byte of hole
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.