Re: [PATCH v4] btrfs: retry verity reads for not-uptodate Merkle folios

From: Matthew Wilcox

Date: Sun Aug 16 2026 - 23:07:49 EST


On Thu, Jul 23, 2026 at 05:14:44AM +0200, David Sterba wrote:
> With that new label the main loop becomes a less readable, previously
> there was just again and out. From a distance the loop likes a big while
> from again: to read_key_bytes, so this may be a good followup cleanup
> (if the end result is reasonable).

I think a better followup patch would be to use read_cache_folio()
(or similar) rather then duplicating that logic in btrfs ...