From: Ian Abbott Date: Wed, 5 Sep 2012 16:44:31 +0000 (+0100) Subject: UDF: Add support for O_DIRECT X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~17^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5eec54fcde7e065eb3d8a6e70e61d90673ca706b;p=pandora-kernel.git UDF: Add support for O_DIRECT Add support for the O_DIRECT flag. There are two cases to deal with: 1. Small files stored in the ICB (inode control block?): just return 0 from the new udf_adinicb_direct_IO() handler to fall back to buffered I/O. 2. Larger files, not stored in the ICB: nothing special here. Just call blockdev_direct_IO() from our new udf_direct_IO() handler and tidy up any blocks instantiated outside i_size on error. This is pretty standard. Factor error handling code out of udf_write_begin() into new function udf_write_failed() so it can also be called by udf_direct_IO(). Also change the whitespace in udf_aops to make it a bit neater. Signed-off-by: Ian Abbott Signed-off-by: Jan Kara --- Reading git-diff-tree failed