Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a24eab1ed506f3e0bcbcd3f619558935549d4ace
Commit:     a24eab1ed506f3e0bcbcd3f619558935549d4ace
Parent:     b801a1e7dbca3f51d0a4b22a750ae257196002cb
Author:     Jens Axboe <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 11 10:14:40 2008 +0100
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Fri Jan 11 10:14:40 2008 +0100

    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 <[EMAIL PROTECTED]>
---
 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 56e2304..b8af22e 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to