On Tue, Dec 27, 2022 at 07:42:57PM +0000, SeongJae Park wrote: > > +static inline struct page *damon_get_page(unsigned long pfn) > > +{ > > + struct folio *folio = damon_get_folio(pfn); > > + > > + return &folio->page; > > I think we should check if folio is NULL before dereferencing it? &folio->page does not dereeference folio.