Truncating Pages In The Page Cache
In addition, we need to handle truncating page cache parts related to our
file, when the matching part of the file is truncated.
- In stamfs_inode_do_truncate, before the blocks freeing loop, we need
to tell the page cache to delete the relevant pages, using the VFS's
block_truncate_page function.
Originally written by
guy keren