summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason2008-04-18 16:29:38 +0200
committerChris Mason2008-09-25 17:04:02 +0200
commita443755f1ca3e190e12e3a845ddecb3ee1782512 (patch)
treeedd5d77fe4b14eb91ac0add756094f2f1669a57d /fs/btrfs/ctree.h
parentBtrfs: Remove bogus max_sector warnings from the extent_io code (diff)
downloadkernel-qcow2-linux-a443755f1ca3e190e12e3a845ddecb3ee1782512.tar.gz
kernel-qcow2-linux-a443755f1ca3e190e12e3a845ddecb3ee1782512.tar.xz
kernel-qcow2-linux-a443755f1ca3e190e12e3a845ddecb3ee1782512.zip
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,
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)
{