]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: don't add both copies of DUP to reada extent tree
authorArne Jansen <sensille@gmx.net>
Sat, 25 Feb 2012 08:09:47 +0000 (09:09 +0100)
committerDavid Sterba <dsterba@suse.cz>
Wed, 18 Apr 2012 17:12:44 +0000 (19:12 +0200)
commit92da791c1868dfab6bdf8bbf33d2a25db0ce74e8
treebaed843e078e80d04ff28054751dea22e98bea0b
parented060749913980f62b68b8047c1efa22004e19ff
btrfs: don't add both copies of DUP to reada extent tree

Normally when there are 2 copies of a block, we add both to the
reada extent tree and prefetch only the one that is easier to reach.
This way we can better utilize multiple devices.
In case of DUP this makes no sense as both copies reside on the
same device.

Signed-off-by: Arne Jansen <sensille@gmx.net>
fs/btrfs/reada.c