On Thu, Mar 21, 2024 at 04:27:31PM +0800, Kefeng Wang wrote: > + pr_debug("pid(%d) [%d] folio->count=%d\n", current->pid, i, > + folio_ref_count(folio)); > + folio_mark_uptodate(folio); > + folio_unlock(folio); You can use folio_end_read() here.
On Thu, Mar 21, 2024 at 04:27:31PM +0800, Kefeng Wang wrote: > + pr_debug("pid(%d) [%d] folio->count=%d\n", current->pid, i, > + folio_ref_count(folio)); > + folio_mark_uptodate(folio); > + folio_unlock(folio); You can use folio_end_read() here.