Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155913
b: refs/heads/master
c: 3acada4
h: refs/heads/master
i:
  155911: 9540b93
v: v3
  • Loading branch information
David Woodhouse authored and Chris Mason committed Jul 22, 2009
1 parent 82e4404 commit f27572d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 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: 29c5e8ce01f9dad7e24b99c21e4f836d6b0289e0
refs/heads/master: 3acada49c2794c5aac21849e2ea05790c6dd2faa
20 changes: 0 additions & 20 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2795,26 +2795,6 @@ int btrfs_rmap_block(struct btrfs_mapping_tree *map_tree,
}
}

for (i = 0; i > nr; i++) {
struct btrfs_multi_bio *multi;
struct btrfs_bio_stripe *stripe;
int ret;

length = 1;
ret = btrfs_map_block(map_tree, WRITE, buf[i],
&length, &multi, 0);
BUG_ON(ret);

stripe = multi->stripes;
for (j = 0; j < multi->num_stripes; j++) {
if (stripe->physical >= physical &&
physical < stripe->physical + length)
break;
}
BUG_ON(j >= multi->num_stripes);
kfree(multi);
}

*logical = buf;
*naddrs = nr;
*stripe_len = map->stripe_len;
Expand Down

0 comments on commit f27572d

Please sign in to comment.