diff options
author | 2022-02-13 15:22:28 -0500 | |
---|---|---|
committer | 2022-03-21 12:59:02 -0400 | |
commit | d6c75dc22c755c567838f12f12a16f2a323ebd4e (patch) | |
tree | 78954666fd026403b0ee17150063a927b5ff7f86 /include/linux/mm.h | |
parent | mm: Convert remove_mapping() to take a folio (diff) | |
download | linux-d6c75dc22c755c567838f12f12a16f2a323ebd4e.tar.gz linux-d6c75dc22c755c567838f12f12a16f2a323ebd4e.tar.bz2 linux-d6c75dc22c755c567838f12f12a16f2a323ebd4e.zip |
mm/truncate: Split invalidate_inode_page() into mapping_evict_folio()
Some of the callers already have the address_space and can avoid calling
folio_mapping() and checking if the folio was already truncated. Also
add kernel-doc and fix the return type (in case we ever support folios
larger than 4TB).
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index a583b7375445..dede2eda4d7f 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1825,7 +1825,6 @@ extern void truncate_setsize(struct inode *inode, loff_t newsize); void pagecache_isize_extended(struct inode *inode, loff_t from, loff_t to); void truncate_pagecache_range(struct inode *inode, loff_t offset, loff_t end); int generic_error_remove_page(struct address_space *mapping, struct page *page); -int invalidate_inode_page(struct page *page); #ifdef CONFIG_MMU extern vm_fault_t handle_mm_fault(struct vm_area_struct *vma, |