btrfs: scrub
[deliverable/linux.git] / fs / btrfs / volumes.h
index cc2eadaf7a27b996af24eaea258b14c5c5c1cfe0..f7c20123a1fe173187e3820a963602c3c82c30ac 100644 (file)
@@ -85,6 +85,9 @@ struct btrfs_device {
        /* physical drive uuid (or lvm uuid) */
        u8 uuid[BTRFS_UUID_SIZE];
 
+       /* per-device scrub information */
+       struct scrub_dev *scrub_device;
+
        struct btrfs_work work;
 };
 
@@ -157,6 +160,9 @@ struct map_lookup {
        struct btrfs_bio_stripe stripes[];
 };
 
+#define map_lookup_size(n) (sizeof(struct map_lookup) + \
+                           (sizeof(struct btrfs_bio_stripe) * (n)))
+
 /* Used to sort the devices by max_avail(descending sort) */
 int btrfs_cmp_device_free_bytes(const void *dev_info1, const void *dev_info2);
 
This page took 0.037202 seconds and 5 git commands to generate.