diff options
author | 2021-12-02 16:01:55 -0500 | |
---|---|---|
committer | 2022-01-08 00:28:41 -0500 | |
commit | 1e84a3d997b74c33491899e31d48774f252213ab (patch) | |
tree | 8d187a44f9360b3c7fd73304939d331e05fc4682 /include/linux/mm.h | |
parent | shmem: Convert part of shmem_undo_range() to use a folio (diff) | |
download | linux-1e84a3d997b74c33491899e31d48774f252213ab.tar.gz linux-1e84a3d997b74c33491899e31d48774f252213ab.tar.bz2 linux-1e84a3d997b74c33491899e31d48774f252213ab.zip |
truncate,shmem: Add truncate_inode_folio()
Convert all callers of truncate_inode_page() to call
truncate_inode_folio() instead, and move the declaration to mm/internal.h.
Move the assertion that the caller is not passing in a tail page to
generic_error_remove_page(). We can't entirely remove the struct page
from the callers yet because the page pointer in the pvec might be a
shadow/dax/swap entry instead of actually a page.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: William Kucharski <william.kucharski@oracle.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 c9cdb26802fb..d8b7d7ed14dd 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1859,7 +1859,6 @@ extern void truncate_pagecache(struct inode *inode, loff_t new); 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 truncate_inode_page(struct address_space *mapping, struct page *page); int generic_error_remove_page(struct address_space *mapping, struct page *page); int invalidate_inode_page(struct page *page); |