]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Be stricter in bch2_read_retry_nodecode()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 16 Jan 2025 08:43:03 +0000 (03:43 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:11 +0000 (21:02 -0400)
commitd0148e7169d5a62e5b03c2ecc3a91e508cb7d9ba
treefa29c2b57a76190ca22cd840d0fa9cda577a53ea
parent6f7111f820d5b956bab7ff744ecae953e2bf8e4f
bcachefs: Be stricter in bch2_read_retry_nodecode()

Now that data_update embeds bch_read_bio, BCH_READ_NODECODE means that
the read is embedded in a a data_update - and we can check in the retry
path if the extent has changed and bail out.

This likely fixes some subtle bugs with read errors and data moves.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io_read.c