Skip to content

Commit 5a60542

Browse files
author
Matthew Wilcox (Oracle)
committed
btrfs: Remove a use of PAGE_SIZE in btrfs_invalidate_folio()
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> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent c377313 commit 5a60542

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/btrfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8296,7 +8296,7 @@ static void btrfs_invalidate_folio(struct folio *folio, size_t offset,
82968296
* cover the full folio, like invalidating the last folio, we're
82978297
* still safe to wait for ordered extent to finish.
82988298
*/
8299-
if (!(offset == 0 && length == PAGE_SIZE)) {
8299+
if (!(offset == 0 && length == folio_size(folio))) {
83008300
btrfs_releasepage(&folio->page, GFP_NOFS);
83018301
return;
83028302
}

0 commit comments

Comments
 (0)