# Re: \[PATCH 03/43\] fbdev/deferred-io: Clean up pageref on lastclose

- From: Javier Martinez Canillas \<javierm@redhat.com\>
- Date: 2024-03-17 13:20:06 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2024/03/9246309
- Thread: https://ratatoskr.run/linux-fbdev/2024/03/9246131/t.md

```text
Thomas Zimmermann [ref] 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@suse.de>
> ---

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>

-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat

```
