[PATCH 03/43] fbdev/deferred-io: Clean up pageref on lastclose
Javier Martinez Canillas
javierm at redhat.com
Sun Mar 17 13:19:56 UTC 2024
Thomas Zimmermann <tzimmermann at suse.de> 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 at suse.de>
> ---
Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
More information about the dri-devel
mailing list