diff options
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index cc2eadaf7a27..f7c20123a1fe 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h | |||
@@ -85,6 +85,9 @@ struct btrfs_device { | |||
85 | /* physical drive uuid (or lvm uuid) */ | 85 | /* physical drive uuid (or lvm uuid) */ |
86 | u8 uuid[BTRFS_UUID_SIZE]; | 86 | u8 uuid[BTRFS_UUID_SIZE]; |
87 | 87 | ||
88 | /* per-device scrub information */ | ||
89 | struct scrub_dev *scrub_device; | ||
90 | |||
88 | struct btrfs_work work; | 91 | struct btrfs_work work; |
89 | }; | 92 | }; |
90 | 93 | ||
@@ -157,6 +160,9 @@ struct map_lookup { | |||
157 | struct btrfs_bio_stripe stripes[]; | 160 | struct btrfs_bio_stripe stripes[]; |
158 | }; | 161 | }; |
159 | 162 | ||
163 | #define map_lookup_size(n) (sizeof(struct map_lookup) + \ | ||
164 | (sizeof(struct btrfs_bio_stripe) * (n))) | ||
165 | |||
160 | /* Used to sort the devices by max_avail(descending sort) */ | 166 | /* Used to sort the devices by max_avail(descending sort) */ |
161 | int btrfs_cmp_device_free_bytes(const void *dev_info1, const void *dev_info2); | 167 | int btrfs_cmp_device_free_bytes(const void *dev_info1, const void *dev_info2); |
162 | 168 | ||