Btrfs: Fix compile warnings on 32 bit machines
[linux-2.6-block.git] / fs / btrfs / volumes.c
index cbb9bb31431db8611ecc02b7c30e3856749a241c..80a27284dbf16c257c22c2f275617c191b2ce939 100644 (file)
@@ -200,7 +200,8 @@ loop:
                 * is now congested.  Back off and let other work structs
                 * run instead
                 */
-               if (pending && bdi_write_congested(bdi)) {
+               if (pending && bdi_write_congested(bdi) &&
+                   fs_info->fs_devices->open_devices > 1) {
                        struct bio *old_head;
 
                        spin_lock(&device->io_lock);