]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: deal with DIO bios that span more than one ordered extent
authorChris Mason <chris.mason@oracle.com>
Mon, 29 Nov 2010 00:56:33 +0000 (19:56 -0500)
committerChris Mason <chris.mason@oracle.com>
Mon, 29 Nov 2010 00:56:33 +0000 (19:56 -0500)
commit082144ac64c0317ba3e4212b55ea4e866c3d695c
tree5a83cd42d57fcc4d92d12965b5eafdb472e89b02
parent9ee89d38560cc35d687a716682f54c2137763a0b
Btrfs: deal with DIO bios that span more than one ordered extent

The new DIO bio splitting code has problems when the bio
spans more than one ordered extent.  This will happen as the
generic DIO code merges our get_blocks calls together into
a bigger single bio.

This fixes things by walking forward in the ordered extent
code finding all the overlapping ordered extents and completing them
all at once.

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