From: Li Dongyang Date: Sat, 17 Apr 2010 09:49:10 +0000 (+0800) Subject: ocfs2: Avoid direct write if we fall back to buffered I/O X-Git-Tag: v2.6.34-rc7~27^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b933c8e6f1a2f3118082c455eef25f9b1ac7b45;p=pandora-kernel.git ocfs2: Avoid direct write if we fall back to buffered I/O when we fall back to buffered write from direct write, we call __generic_file_aio_write() but that will end up doing direct write even we are only prepared to do buffered write because the file has the O_DIRECT flag set. This is a fix for https://bugzilla.novell.com/show_bug.cgi?id=591039 revised with Joel's comments. Signed-off-by: Li Dongyang Acked-by: Mark Fasheh Signed-off-by: Joel Becker --- Reading git-diff-tree failed