diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-05-08 03:37:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:27 -0400 |
commit | 5e841b88d23d0ea0a6ee4e76c489899d4d23ce25 (patch) | |
tree | 7268b4bbb85aa7b1c72f54f7f8cd309b34cfecce /include | |
parent | 7bf1ea33ad70cf49638092367d52859fbbc44fee (diff) |
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 <lethal@linux-sh.org>
Cc: Jaya Kumar <jayakumar.lkml@gmail.com>
Acked-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index 8a8255b94b62..0de426026f4a 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h | |||
@@ -4,6 +4,8 @@ | |||
4 | #include <asm/types.h> | 4 | #include <asm/types.h> |
5 | #include <linux/i2c.h> | 5 | #include <linux/i2c.h> |
6 | 6 | ||
7 | struct dentry; | ||
8 | |||
7 | /* Definitions of frame buffers */ | 9 | /* Definitions of frame buffers */ |
8 | 10 | ||
9 | #define FB_MAJOR 29 | 11 | #define FB_MAJOR 29 |
@@ -927,11 +929,11 @@ static inline void __fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, | |||
927 | } | 929 | } |
928 | } | 930 | } |
929 | 931 | ||
930 | #ifdef CONFIG_FB_DEFERRED_IO | ||
931 | /* drivers/video/fb_defio.c */ | 932 | /* drivers/video/fb_defio.c */ |
932 | extern void fb_deferred_io_init(struct fb_info *info); | 933 | extern void fb_deferred_io_init(struct fb_info *info); |
933 | extern void fb_deferred_io_cleanup(struct fb_info *info); | 934 | extern void fb_deferred_io_cleanup(struct fb_info *info); |
934 | #endif | 935 | extern int fb_deferred_io_fsync(struct file *file, struct dentry *dentry, |
936 | int datasync); | ||
935 | 937 | ||
936 | /* drivers/video/fbsysfs.c */ | 938 | /* drivers/video/fbsysfs.c */ |
937 | extern struct fb_info *framebuffer_alloc(size_t size, struct device *dev); | 939 | extern struct fb_info *framebuffer_alloc(size_t size, struct device *dev); |