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 /drivers/video/fbmem.c | |
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 'drivers/video/fbmem.c')
-rw-r--r-- | drivers/video/fbmem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 28225265159a..44cf0e4f52e9 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -1266,6 +1266,9 @@ static const struct file_operations fb_fops = { | |||
1266 | #ifdef HAVE_ARCH_FB_UNMAPPED_AREA | 1266 | #ifdef HAVE_ARCH_FB_UNMAPPED_AREA |
1267 | .get_unmapped_area = get_fb_unmapped_area, | 1267 | .get_unmapped_area = get_fb_unmapped_area, |
1268 | #endif | 1268 | #endif |
1269 | #ifdef CONFIG_FB_DEFERRED_IO | ||
1270 | .fsync = fb_deferred_io_fsync, | ||
1271 | #endif | ||
1269 | }; | 1272 | }; |
1270 | 1273 | ||
1271 | struct class *fb_class; | 1274 | struct class *fb_class; |