Btrfs: use a btrfs bioset instead of abusing bio internals
[linux-2.6-block.git] / fs / btrfs / disk-io.c
index 4e9ebe1f1827895712afdea8e0e8016bd20088ca..ca0ea99282109a95016ffddf99259d640dd42f84 100644 (file)
@@ -3128,7 +3128,7 @@ static int write_dev_flush(struct btrfs_device *device, int wait)
         * caller
         */
        device->flush_bio = NULL;
-       bio = bio_alloc(GFP_NOFS, 0);
+       bio = btrfs_io_bio_alloc(GFP_NOFS, 0);
        if (!bio)
                return -ENOMEM;