diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-04-18 10:29:38 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:02 -0400 |
commit | a443755f1ca3e190e12e3a845ddecb3ee1782512 (patch) | |
tree | edd5d77fe4b14eb91ac0add756094f2f1669a57d /fs/btrfs/ctree.h | |
parent | 41471e8341a6b476bcd8ecc765a8b297c22a74f9 (diff) | |
download | lwn-a443755f1ca3e190e12e3a845ddecb3ee1782512.tar.gz lwn-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.h | 5 |
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) { |