On Fri, 15 Sept 2023 at 17:11, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote: > [...] > if (unlikely(error)) > folio_set_error(folio); > else if (uptodate) > folio_mark_uptodate(folio); > if (finished) > folio_unlock(folio); > } Note that this then becomes if (unlikely(error)) folio_set_error(folio); if (finished) folio_unlock(folio, uptodate && !error); } but that change would happen later, in patch 6/17. Linus