aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fb_defio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fb_defio.c')
-rw-r--r--drivers/video/fb_defio.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/video/fb_defio.c b/drivers/video/fb_defio.c
index 65f4e6ee7f94..f963f5f59b73 100644
--- a/drivers/video/fb_defio.c
+++ b/drivers/video/fb_defio.c
@@ -47,6 +47,18 @@ static struct page* fb_deferred_io_nopage(struct vm_area_struct *vma,
47 return page; 47 return page;
48} 48}
49 49
50int fb_deferred_io_fsync(struct file *file, struct dentry *dentry, int datasync)
51{
52 struct fb_info *info = file->private_data;
53
54 /* Kill off the delayed work */
55 cancel_rearming_delayed_work(&info->deferred_work);
56
57 /* Run it immediately */
58 return schedule_delayed_work(&info->deferred_work, 0);
59}
60EXPORT_SYMBOL_GPL(fb_deferred_io_fsync);
61
50/* vm_ops->page_mkwrite handler */ 62/* vm_ops->page_mkwrite handler */
51static int fb_deferred_io_mkwrite(struct vm_area_struct *vma, 63static int fb_deferred_io_mkwrite(struct vm_area_struct *vma,
52 struct page *page) 64 struct page *page)