Message ID | 20220330144930.315951-13-willy@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Additional patches for 5.18 | expand |
On Wed, Mar 30, 2022 at 03:49:30PM +0100, Matthew Wilcox (Oracle) wrote: > While btrfs doesn't use large folios yet, this should have been changed > as part of the conversion from invalidatepage to invalidate_folio. Looks good, Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index aa0a60ee26cb..6bfc4343c98d 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8296,7 +8296,7 @@ static void btrfs_invalidate_folio(struct folio *folio, size_t offset, * cover the full folio, like invalidating the last folio, we're * still safe to wait for ordered extent to finish. */ - if (!(offset == 0 && length == PAGE_SIZE)) { + if (!(offset == 0 && length == folio_size(folio))) { btrfs_releasepage(&folio->page, GFP_NOFS); return; }
While btrfs doesn't use large folios yet, this should have been changed as part of the conversion from invalidatepage to invalidate_folio. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- fs/btrfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)