fbdev/defio: Early-out if page is already enlisted
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 11 Feb 2022 09:46:39 +0000 (10:46 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 16 Feb 2022 15:41:19 +0000 (16:41 +0100)
commit105a940416fc622406653b6fe54732897642dfbc
tree754e2612481665202e8a0364c71352e5b75527c9
parent21d26b3972532069f9315f73c0f3128a49d2e014
fbdev/defio: Early-out if page is already enlisted

Return early if a page is already in the list of dirty pages for
deferred I/O. This can be detected if the page's list head is not
empty. Keep the list head initialized while the page is not enlisted
to make this work reliably.

v2:
* update comment and fix spelling (Sam)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220211094640.21632-2-tzimmermann@suse.de
drivers/video/fbdev/core/fb_defio.c