]> git.baikalelectronics.ru Git - kernel.git/commit
fb_defio: Remove custom address_space_operations
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 10 Mar 2021 18:55:30 +0000 (18:55 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 12 Mar 2021 14:10:03 +0000 (15:10 +0100)
commit2da40f5cb0f8f2ecacff759d0488d97f1a10e3ed
tree2c97a42bc4cf623c7ef0e76b44c2a454c6df6273
parent79e8e33fa1602d4de555a988937f43774af70bab
fb_defio: Remove custom address_space_operations

There's no need to give the page an address_space.  Leaving the
page->mapping as NULL will cause the VM to handle set_page_dirty()
the same way that it's handled now, and that was the only reason to
set the address_space in the first place.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210310185530.1053320-1-willy@infradead.org
drivers/video/fbdev/core/fb_defio.c
drivers/video/fbdev/core/fbmem.c
include/linux/fb.h