OSDN Git Service

Revert "fb_defio: Remove custom address_space_operations"
authorMatthew Wilcox <willy@infradead.org>
Tue, 1 Jun 2021 14:30:30 +0000 (15:30 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Jun 2021 15:38:40 +0000 (17:38 +0200)
commit0b78f8bcf4951af30b0ae83ea4fad27d641ab617
tree6545ba613e36b540815717431b9b157b67cbe651
parent8124c8a6b35386f73523d27eacb71b5364a68c4c
Revert "fb_defio: Remove custom address_space_operations"

Commit ccf953d8f3d6 makes framebuffers which use deferred I/O stop
displaying updates after the first one.  This is because the pages
handled by fb_defio no longer have a page_mapping().  That prevents
page_mkclean() from marking the PTEs as clean, and so writes are only
noticed the first time.

Reported-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/YLZEhv0cpZp8uVE3@casper.infradead.org
drivers/video/fbdev/core/fb_defio.c
drivers/video/fbdev/core/fbmem.c
include/linux/fb.h