diff options
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, | |||
800 | return (struct btrfs_stripe *)offset; | 800 | return (struct btrfs_stripe *)offset; |
801 | } | 801 | } |
802 | 802 | ||
803 | static 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 | |||
803 | static inline u64 btrfs_stripe_offset_nr(struct extent_buffer *eb, | 808 | static 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 | { |