]> 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)
commitf8889e3c0f26082a7a7d3739640babec92960dd5
treebaed843e078e80d04ff28054751dea22e98bea0b
parent9c8d1f733907d6cdfd984762e6d82ed91379a8dd
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