diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-01-11 10:14:40 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-01-11 10:14:40 +0100 |
commit | a24eab1ed506f3e0bcbcd3f619558935549d4ace (patch) | |
tree | 9ae2445a6b21787292da1581a61ff0bee49c3637 /drivers/block | |
parent | b801a1e7dbca3f51d0a4b22a750ae257196002cb (diff) | |
download | linux-stable-a24eab1ed506f3e0bcbcd3f619558935549d4ace.tar.gz linux-stable-a24eab1ed506f3e0bcbcd3f619558935549d4ace.tar.bz2 linux-stable-a24eab1ed506f3e0bcbcd3f619558935549d4ace.zip |
loop: fix bad bio_alloc() nr_iovec request
Don't allocate room for an iovec when it is not needed.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 56e23042728a..b8af22e610df 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -610,7 +610,7 @@ static int loop_thread(void *data) static int loop_switch(struct loop_device *lo, struct file *file) { struct switch_request w; - struct bio *bio = bio_alloc(GFP_KERNEL, 1); + struct bio *bio = bio_alloc(GFP_KERNEL, 0); if (!bio) return -ENOMEM; init_completion(&w.wait); |