]> Git Repo - J-linux.git/commitdiff
fb_defio: Use noop_dirty_folio()
authorMatthew Wilcox (Oracle) <[email protected]>
Wed, 9 Feb 2022 20:22:14 +0000 (20:22 +0000)
committerMatthew Wilcox (Oracle) <[email protected]>
Wed, 16 Mar 2022 17:37:05 +0000 (13:37 -0400)
Remove the custom implementation of set_page_dirty.

Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Tested-by: Damien Le Moal <[email protected]>
Acked-by: Damien Le Moal <[email protected]>
Tested-by: Mike Marshall <[email protected]> # orangefs
Tested-by: David Howells <[email protected]> # afs
drivers/video/fbdev/core/fb_defio.c

index a591d291b231af8531174bd7dd8057d767ab13f1..d0b0b05e0dff9bd60ae5f7a036768b8881c27873 100644 (file)
@@ -151,15 +151,8 @@ static const struct vm_operations_struct fb_deferred_io_vm_ops = {
        .page_mkwrite   = fb_deferred_io_mkwrite,
 };
 
-static int fb_deferred_io_set_page_dirty(struct page *page)
-{
-       if (!PageDirty(page))
-               SetPageDirty(page);
-       return 0;
-}
-
 static const struct address_space_operations fb_deferred_io_aops = {
-       .set_page_dirty = fb_deferred_io_set_page_dirty,
+       .dirty_folio    = noop_dirty_folio,
 };
 
 int fb_deferred_io_mmap(struct fb_info *info, struct vm_area_struct *vma)
This page took 0.05666 seconds and 4 git commands to generate.