diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-12-02 16:01:55 -0500 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-01-08 00:28:41 -0500 |
commit | 1e84a3d997b74c33491899e31d48774f252213ab (patch) | |
tree | 8d187a44f9360b3c7fd73304939d331e05fc4682 /fs | |
parent | 7b774aab7941e195d3130caa856da6904333988b (diff) |
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 'fs')
0 files changed, 0 insertions, 0 deletions