Re: [PATCH 4/4] mm/memory: convert do_read_fault() to use folios

Matthew Wilcox
2023-07-03T23:32:44Z

On Sun, Jul 02, 2023 at 10:58:50PM -0700, Sidhartha Kumar wrote:
> +++ b/mm/memory.c
> @@ -4528,6 +4528,7 @@ static inline bool should_fault_around(struct vm_fault *vmf)
> static vm_fault_t do_read_fault(struct vm_fault *vmf)
> {
> vm_fault_t ret = 0;
> + struct folio *folio = page_folio(vmf->page);

Similarly, vmf->page is not initialised until after __do_fault().