Re: [PATCH] fs/vboxsf: Replace kmap() with kmap_local_{page, folio}()

Ira Weiny
2023-06-29T02:14:12Z

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