]> Git Repo - linux.git/commit
fsverity: stop using PG_error to track error status
authorEric Biggers <[email protected]>
Tue, 29 Nov 2022 07:04:01 +0000 (23:04 -0800)
committerEric Biggers <[email protected]>
Tue, 29 Nov 2022 07:15:10 +0000 (23:15 -0800)
commit98dc08bae6780bb950b5c0cdefeb662b22482655
tree7f2466374b20a43b5ee790029181190d6f4d50fc
parentf0c4d9fc9cc9462659728d168387191387e903cc
fsverity: stop using PG_error to track error status

As a step towards freeing the PG_error flag for other uses, change ext4
and f2fs to stop using PG_error to track verity errors.  Instead, if a
verity error occurs, just mark the whole bio as failed.  The coarser
granularity isn't really a problem since it isn't any worse than what
the block layer provides, and errors from a multi-page readahead aren't
reported to applications unless a single-page read fails too.

f2fs supports compression, which makes the f2fs changes a bit more
complicated than desired, but the basic premise still works.

Note: there are still a few uses of PageError in f2fs, but they are on
the write path, so they are unrelated and this patch doesn't touch them.

Reviewed-by: Chao Yu <[email protected]>
Acked-by: Jaegeuk Kim <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
fs/ext4/readpage.c
fs/f2fs/compress.c
fs/f2fs/data.c
fs/verity/verify.c
This page took 0.057216 seconds and 4 git commands to generate.