Btrfs: fix double increment of path->slots[0] in btrfs_next_leaf
[deliverable/linux.git] / fs / btrfs / volumes.h
index 5c3ff6d02fd72618bafd917a3e5091e0d0e702f6..5139a833f721353a32f13ed1c52c3647c0951776 100644 (file)
@@ -96,7 +96,12 @@ struct btrfs_fs_devices {
        u64 rw_devices;
        u64 total_rw_bytes;
        struct block_device *latest_bdev;
-       /* all of the devices in the FS */
+
+       /* all of the devices in the FS, protected by a mutex
+        * so we can safely walk it to write out the supers without
+        * worrying about add/remove by the multi-device code
+        */
+       struct mutex device_list_mutex;
        struct list_head devices;
 
        /* devices not currently being allocated */
@@ -107,6 +112,11 @@ struct btrfs_fs_devices {
        int seeding;
 
        int opened;
+
+       /* set when we find or add a device that doesn't have the
+        * nonrot flag set
+        */
+       int rotating;
 };
 
 struct btrfs_bio_stripe {
This page took 0.024982 seconds and 5 git commands to generate.