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

David Howells dhowells at redhat.com
Fri Jun 16 15:30:43 PDT 2023


Vishal Moola (Oracle) <vishal.moola at gmail.com> 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




More information about the linux-afs mailing list