From: Chris Mason Date: Thu, 10 Apr 2008 14:23:21 +0000 (-0400) Subject: Btrfs: Add O_DIRECT read and write (writes == buffered + cache flush) X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~240 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16432985920f3c45af82da214e2498f3e2f9066b;p=pandora-kernel.git Btrfs: Add O_DIRECT read and write (writes == buffered + cache flush) This adds basic O_DIRECT read and write support. In the write case, we just do a normal buffered write followed by a cache flush. O_DIRECT + O_SYNC are required to trigger metadata syncs. In the read case, there is a basic btrfs_get_block call for use by the generic O_DIRECT code. This does honor multi-volume mapping rules but it skips all checksumming. Signed-off-by: Chris Mason --- Reading git-diff-tree failed