diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-03-30 05:25:06 +0200 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-04-01 20:40:44 +0200 |
commit | 5a60542c61f3cce6e5dff2a38c8fb08a852a517b (patch) | |
tree | 4f0819ea8c9c53aa2dd8e5ffe2db4225ab8ac0c5 | |
parent | ntfs: Correct mark_ntfs_record_dirty() folio conversion (diff) | |
download | linux-5a60542c61f3cce6e5dff2a38c8fb08a852a517b.tar.xz linux-5a60542c61f3cce6e5dff2a38c8fb08a852a517b.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |