Fix btrfs_get_extent and get_block corner cases, and disable O_DIRECT reads
authorChris Mason <chris.mason@oracle.com>
Tue, 22 Apr 2008 17:26:46 +0000 (13:26 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:02 +0000 (11:04 -0400)
commite1c4b7451e22f5b0a9fbccfa560ee7b80c35b8cd
tree4e9d3f9d0a8084ad6282965fa190200de3a91d7d
parent409c6118d39cb2d8666bee3d61a1a9ae5bbd4f5d
Fix btrfs_get_extent and get_block corner cases, and disable O_DIRECT reads

The generic O_DIRECT code assumes all the bios have the same bdev,
which isn't true for multi-device btrfs.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c
fs/btrfs/inode.c
fs/btrfs/volumes.c