Jeff Moyer fb5527e68d [PATCH] direct-io: sync and invalidate file region when falling back to buffered write
When direct-io falls back to buffered write, it will just leave the dirty data
floating about in pagecache, pending regular writeback.

But normal direct-io semantics are that IO is synchronous, and that it leaves
no pagecache behind.

So change the fallback-to-buffered-write code to sync the file region and to
then strip away the pagecache, just as a regular direct-io write would do.

Acked-by: Jeff Moyer <jmoyer@redhat.com>
Cc: Zach Brown <zach.brown@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-20 10:26:35 -07:00
..
2006-09-26 08:48:44 -07:00
2006-10-15 14:09:55 -07:00
2006-09-26 08:48:45 -07:00
2006-10-11 11:14:19 -07:00
2006-09-26 08:48:58 -07:00
2006-09-26 08:48:45 -07:00
2006-09-29 09:18:23 -07:00