aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-18 10:29:38 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:02 -0400
commita443755f1ca3e190e12e3a845ddecb3ee1782512 (patch)
treeedd5d77fe4b14eb91ac0add756094f2f1669a57d /fs/btrfs/ctree.h
parent41471e8341a6b476bcd8ecc765a8b297c22a74f9 (diff)
Btrfs: Check device uuids along with devids
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index b56ae1950658..d119d95d139a 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -800,6 +800,11 @@ static inline struct btrfs_stripe *btrfs_stripe_nr(struct btrfs_chunk *c,
800 return (struct btrfs_stripe *)offset; 800 return (struct btrfs_stripe *)offset;
801} 801}
802 802
803static inline char *btrfs_stripe_dev_uuid_nr(struct btrfs_chunk *c, int nr)
804{
805 return btrfs_stripe_dev_uuid(btrfs_stripe_nr(c, nr));
806}
807
803static inline u64 btrfs_stripe_offset_nr(struct extent_buffer *eb, 808static inline u64 btrfs_stripe_offset_nr(struct extent_buffer *eb,
804 struct btrfs_chunk *c, int nr) 809 struct btrfs_chunk *c, int nr)
805{ 810{