Thomas Zimmermann <tzimmermann@xxxxxxx> writes: > Clean up the pageref state as part of the lastclose helper. This > only requirs to clear the page's mapping field. The pageref and requires > page can stay in place for the next opened instance of the frame- > buffer file. > > With the change in the clean-up logic, here's no further need there's > to lookup pages during the lastclose cleanup. The code instead > uses the existing pagerefs in its look-up table. It also avoids > using smem_len, which some driver might not set correctly. > > Signed-off-by: Thomas Zimmermann <tzimmermann@xxxxxxx> > --- Reviewed-by: Javier Martinez Canillas <javierm@xxxxxxxxxx> -- Best regards, Javier Martinez Canillas Core Platforms Red Hat