diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-12-02 23:25:01 -0500 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-01-08 00:28:41 -0500 |
commit | fae9bc4a90176868cbbbecc693acb0ff2607818d (patch) | |
tree | b10ea7a14846cd8ab3df9fcb8be844f756c7cfb2 /mm/filemap.c | |
parent | ccbbf761d440b0d5afcbf232db37435dc38d6161 (diff) | |
download | lwn-fae9bc4a90176868cbbbecc693acb0ff2607818d.tar.gz lwn-fae9bc4a90176868cbbbecc693acb0ff2607818d.zip |
truncate: Convert invalidate_inode_pages2_range() to use a folio
If we're going to unmap a folio, we have to be sure to unmap the entire
folio, not just the part of it which lies after the search index.
We cannot yet remove the struct page from invalidate_inode_pages2_range()
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 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions