From: Chris Mason Date: Fri, 3 Oct 2008 16:30:02 +0000 (-0400) Subject: Btrfs: O_DIRECT writes via buffered writes + invaldiate X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb843a6f513a1a91c54951005e60bd9b95bdf973;p=pandora-kernel.git Btrfs: O_DIRECT writes via buffered writes + invaldiate This reworks the btrfs O_DIRECT write code a bit. It had always fallen back to buffered IO and done an invalidate, but needed to be updated for the data=ordered code. The invalidate wasn't actually removing pages because they were still inside an ordered extent. This also combines the O_DIRECT/O_SYNC paths where possible, and kicks off IO in the main btrfs_file_write loop to keep the pipe down the the disk full as we process long writes. Signed-off-by: Chris Mason --- Reading git-diff-tree failed