Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299817
b: refs/heads/master
c: 3e74317
h: refs/heads/master
i:
  299815: ee560ae
v: v3
  • Loading branch information
Jan Schmidt authored and Chris Mason committed Apr 27, 2012
1 parent 2a9737f commit 097bfa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 996d282c7ff470f150a467eb4815b90159d04c47
refs/heads/master: 3e74317ad773ba9df36db1fa32848cba41ac4d1a
3 changes: 2 additions & 1 deletion trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -3807,10 +3807,11 @@ static int __btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw,
else if (mirror_num)
stripe_index += mirror_num - 1;
else {
int old_stripe_index = stripe_index;
stripe_index = find_live_mirror(map, stripe_index,
map->sub_stripes, stripe_index +
current->pid % map->sub_stripes);
mirror_num = stripe_index + 1;
mirror_num = stripe_index - old_stripe_index + 1;
}
} else {
/*
Expand Down

0 comments on commit 097bfa2

Please sign in to comment.