mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 04:21:03 -04:00
btrfs: don't check PageError in btrfs_verify_page
btrfs_verify_page is called from the readpage completion handler, which is only used to read pages, or parts of pages that aren't uptodate yet. The only case where PageError could be set on a page in btrfs is if we had a previous writeback error, but in that case we won't called readpage on it, as it has previously been marked uptodate. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
committed by
David Sterba
parent
2c14f0ffdd
commit
57201dddd6
@@ -484,7 +484,7 @@ void extent_clear_unlock_delalloc(struct btrfs_inode *inode, u64 start, u64 end,
|
||||
static bool btrfs_verify_page(struct page *page, u64 start)
|
||||
{
|
||||
if (!fsverity_active(page->mapping->host) ||
|
||||
PageError(page) || PageUptodate(page) ||
|
||||
PageUptodate(page) ||
|
||||
start >= i_size_read(page->mapping->host))
|
||||
return true;
|
||||
return fsverity_verify_page(page);
|
||||
|
||||
Reference in New Issue
Block a user