Btrfs: Add O_DIRECT read and write (writes == buffered + cache flush)
authorChris Mason <chris.mason@oracle.com>
Thu, 10 Apr 2008 14:23:21 +0000 (10:23 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:01 +0000 (11:04 -0400)
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 <chris.mason@oracle.com>
fs/btrfs/file.c
fs/btrfs/inode.c

diff --cc fs/btrfs/file.c
Simple merge
Simple merge