summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-18 10:31:42 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-04-18 10:31:42 -0400
commitd25165e95c5c7d8f08f9abd974f706ae5ef25201 (patch)
tree22975f34163588d5e7cc2b944f98395d6032456b /ctree.h
parent1f81c1b6fcc17d6609ba0327aca7cedd967c6731 (diff)
Use device uuids when scanning devices
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index b72ed81b..4e62fe6a 100644
--- a/ctree.h
+++ b/ctree.h
@@ -745,6 +745,11 @@ static inline struct btrfs_stripe *btrfs_stripe_nr(struct btrfs_chunk *c,
return (struct btrfs_stripe *)offset;
}
+static inline char *btrfs_stripe_dev_uuid_nr(struct btrfs_chunk *c, int nr)
+{
+ return btrfs_stripe_dev_uuid(btrfs_stripe_nr(c, nr));
+}
+
static inline u64 btrfs_stripe_offset_nr(struct extent_buffer *eb,
struct btrfs_chunk *c, int nr)
{