mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-12-02 17:26:48 +00:00
crush: avoid recursion if we have already collided
This saves us some cycles, but does not affect the placement result at all. This corresponds to ceph.git commit 4abb53d4f. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
1604f488ac
commit
7d7c1f6136
@ -392,7 +392,7 @@ static int crush_choose(const struct crush_map *map,
|
||||
}
|
||||
|
||||
reject = 0;
|
||||
if (recurse_to_leaf) {
|
||||
if (!collide && recurse_to_leaf) {
|
||||
if (item < 0) {
|
||||
if (crush_choose(map,
|
||||
map->buckets[-1-item],
|
||||
|
Loading…
Reference in New Issue
Block a user