From: Jeff Moyer Date: Fri, 20 Oct 2006 06:28:13 +0000 (-0700) Subject: [PATCH] direct-io: sync and invalidate file region when falling back to buffered... X-Git-Tag: v2.6.19-rc3~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb5527e68d495650a7658fec9a7246bf922db212;p=pandora-kernel.git [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 Cc: Zach Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed