mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
fb_defio: Use noop_dirty_folio()
Remove the custom implementation of set_page_dirty. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Tested-by: Mike Marshall <hubcap@omnibond.com> # orangefs Tested-by: David Howells <dhowells@redhat.com> # afs
This commit is contained in:
parent
46de8b9794
commit
51cdea7ac9
1 changed files with 1 additions and 8 deletions
|
@ -151,15 +151,8 @@ static const struct vm_operations_struct fb_deferred_io_vm_ops = {
|
||||||
.page_mkwrite = fb_deferred_io_mkwrite,
|
.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 = {
|
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)
|
int fb_deferred_io_mmap(struct fb_info *info, struct vm_area_struct *vma)
|
||||||
|
|
Loading…
Reference in a new issue