btrfs: fix fsverify read error handling in end_page_read
authorChristoph Hellwig <hch@lst.de>
Wed, 31 May 2023 06:04:52 +0000 (08:04 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:34 +0000 (13:59 +0200)
commit2c14f0ffdd30bd3d321ad5fe76fcf701746e1df6
treeedb1ba9ee6884f25806dd4021caa2c13ab2ef116
parented9ee98ecb4fdbdfe043ee3eec0a65c0745d8669
btrfs: fix fsverify read error handling in end_page_read

Also clear the uptodate bit to make sure the page isn't seen as uptodate
in the page cache if fsverity verification fails.

Fixes: 146054090b08 ("btrfs: initial fsverity support")
CC: stable@vger.kernel.org # 5.15+
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>
fs/btrfs/extent_io.c