From: Christoph Hellwig Date: Wed, 23 Sep 2009 13:07:30 +0000 (+0200) Subject: direct I/O fallback sync simplification X-Git-Tag: v2.6.33-rc1~49^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c05c4edd876b7ae92787d1295868afcb89b6a348;p=pandora-kernel.git direct I/O fallback sync simplification In the case of direct I/O falling back to buffered I/O we sync data twice currently: once at the end of generic_file_buffered_write using filemap_write_and_wait_range and once a little later in __generic_file_aio_write using do_sync_mapping_range with all flags set. The wait before write of the do_sync_mapping_range call does not make any sense, so just keep the filemap_write_and_wait_range call and move it to the right spot. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro --- Reading git-diff-tree failed