Re: [PATCH] fs/vboxsf: Replace kmap() with kmap_local_{page, folio}()
From: Ira Weiny
Date: Wed Jun 28 2023 - 22:14:12 EST
Fabio M. De Francesco wrote:
> On giovedì 29 giugno 2023 00:23:54 CEST Fabio M. De Francesco wrote:
>
> [...]
>
> >
> > Shouldn't we call folio_lock() to lock the folio to be able to unlock with
> > folio_unlock()?
>
> Sorry, I wanted to write "If so, I can't find either a folio_lock() or a
> page_lock() in this filesystem.".
Check the documentation for read_folio:
... "The filesystem should unlock the folio once the read has
completed, whether it was successful or not." ...
Ira