]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fbdev/deferred-io: Move pageref setup into separate helper
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 19 Apr 2024 08:28:55 +0000 (10:28 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 2 May 2024 09:33:12 +0000 (11:33 +0200)
commit757a2713761fa90bb8f57cba231a3e7259944463
tree2fdb376f07bb77194c900ad079df9c77e14e114c
parent73ef0aecba78aa9ebd309b10b6cd17d94e632892
fbdev/deferred-io: Move pageref setup into separate helper

Set up struct fb_deferred_io_pageref in the new helper function
fb_deferred_io_pageref_lookup(), which runs when the pageref is first
taken. Remove the setup code from the rest of the code.

At first, the code allocates the memory of all pageref structs. The
setup of the various fields happens when the pageref is required.

v2:
- fix typo in commit message (Javier)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240419083331.7761-3-tzimmermann@suse.de
drivers/video/fbdev/core/fb_defio.c