Re: [PATCH] afs: Fix dangling folio ref counts in writeback

From: David Howells
Date: Fri Jun 16 2023 - 18:31:42 EST


Vishal Moola (Oracle) <vishal.moola@xxxxxxxxx> wrote:

> if (skips >= 5 || need_resched()) {
> *_next = start;
> _leave(" = 0 [%llx]", *_next);
> + folio_batch_release(&fbatch);

This should go before the _leave().

> return 0;
> }

Looks okay otherwise.

David