From: Josef Bacik Date: Sun, 23 May 2010 15:00:54 +0000 (-0400) Subject: fs: allow short direct-io reads to be completed via buffered IO X-Git-Tag: v2.6.35-rc1~36^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66f998f611897319b555364cefd5d6e88a205866;p=pandora-kernel.git fs: allow short direct-io reads to be completed via buffered IO This is similar to what already happens in the write case. If we have a short read while doing O_DIRECT, instead of just returning, fallthrough and try to read the rest via buffered IO. BTRFS needs this because if we encounter a compressed or inline extent during DIO, we need to fallback on buffered. If the extent is compressed we need to read the entire thing into memory and de-compress it into the users pages. I have tested this with fsx and everything works great. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed