1TRUNCATE_INODE_PAGES(9) Memory Management in Linux TRUNCATE_INODE_PAGES(9)
2
3
4
6 truncate_inode_pages - truncate *all* the pages from an offset
7
9 void truncate_inode_pages(struct address_space * mapping,
10 loff_t lstart);
11
13 mapping
14 mapping to truncate
15
16 lstart
17 offset from which to truncate
18
20 Called under (and serialised by) inode->i_mutex.
21
23 When this function returns, there can be a page in the process of
24 deletion (inside __delete_from_page_cache) in the specified range. Thus
25 mapping->nrpages can be non-zero when this function returns even after
26 truncation of the whole mapping.
27
29Kernel Hackers Manual 3.10 June 2019 TRUNCATE_INODE_PAGES(9)