Skip to content

Commit 51cdea7

Browse files
author
Matthew Wilcox (Oracle)
committed
fb_defio: Use noop_dirty_folio()
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
1 parent 46de8b9 commit 51cdea7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

drivers/video/fbdev/core/fb_defio.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,8 @@ static const struct vm_operations_struct fb_deferred_io_vm_ops = {
151151
.page_mkwrite = fb_deferred_io_mkwrite,
152152
};
153153

154-
static int fb_deferred_io_set_page_dirty(struct page *page)
155-
{
156-
if (!PageDirty(page))
157-
SetPageDirty(page);
158-
return 0;
159-
}
160-
161154
static const struct address_space_operations fb_deferred_io_aops = {
162-
.set_page_dirty = fb_deferred_io_set_page_dirty,
155+
.dirty_folio = noop_dirty_folio,
163156
};
164157

165158
int fb_deferred_io_mmap(struct fb_info *info, struct vm_area_struct *vma)

0 commit comments

Comments
 (0)