From 5e841b88d23d0ea0a6ee4e76c489899d4d23ce25 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Tue, 8 May 2007 00:37:41 -0700 Subject: fb: fsync() method for deferred I/O flush. There are cases when we do not want to wait on the delay for automatically updating the "real" framebuffer, this implements a simple ->fsync() hook for explicitly flushing the deferred I/O work. The ->page_mkwrite() handler will rearm the work queue normally. (akpm: nuke unneeded ifdefs, forward-delcare struct dentry) Signed-off-by: Paul Mundt Cc: Jaya Kumar Acked-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/fb.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/linux/fb.h') diff --git a/include/linux/fb.h b/include/linux/fb.h index 8a8255b..0de4260 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -4,6 +4,8 @@ #include #include +struct dentry; + /* Definitions of frame buffers */ #define FB_MAJOR 29 @@ -927,11 +929,11 @@ static inline void __fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, } } -#ifdef CONFIG_FB_DEFERRED_IO /* drivers/video/fb_defio.c */ extern void fb_deferred_io_init(struct fb_info *info); extern void fb_deferred_io_cleanup(struct fb_info *info); -#endif +extern int fb_deferred_io_fsync(struct file *file, struct dentry *dentry, + int datasync); /* drivers/video/fbsysfs.c */ extern struct fb_info *framebuffer_alloc(size_t size, struct device *dev); -- cgit v1.1