lkml.org 
[lkml]   [2009]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 05/14] sunvdc: kill vdc_end_request()
    Date
    vdc_end_request() is a thin silly wrapper on top of
    __blk_end_request(). Kill it.

    [ Impact: cleanup ]

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Acked-by: David S. Miller <davem@davemloft.net>
    ---
    drivers/block/sunvdc.c | 9 ++-------
    1 files changed, 2 insertions(+), 7 deletions(-)

    diff --git a/drivers/block/sunvdc.c b/drivers/block/sunvdc.c
    index 5861e33..f59887c 100644
    --- a/drivers/block/sunvdc.c
    +++ b/drivers/block/sunvdc.c
    @@ -212,11 +212,6 @@ static void vdc_end_special(struct vdc_port *port, struct vio_disk_desc *desc)
    vdc_finish(&port->vio, -err, WAITING_FOR_GEN_CMD);
    }

    -static void vdc_end_request(struct request *req, int error, int num_sectors)
    -{
    - __blk_end_request(req, error, num_sectors << 9);
    -}
    -
    static void vdc_end_one(struct vdc_port *port, struct vio_dring_state *dr,
    unsigned int index)
    {
    @@ -239,7 +234,7 @@ static void vdc_end_one(struct vdc_port *port, struct vio_dring_state *dr,

    rqe->req = NULL;

    - vdc_end_request(req, (desc->status ? -EIO : 0), desc->size >> 9);
    + __blk_end_request(req, (desc->status ? -EIO : 0), desc->size);

    if (blk_queue_stopped(port->disk->queue))
    blk_start_queue(port->disk->queue);
    @@ -453,7 +448,7 @@ static void do_vdc_request(struct request_queue *q)

    blkdev_dequeue_request(req);
    if (__send_request(req) < 0)
    - vdc_end_request(req, -EIO, req->hard_nr_sectors);
    + __blk_end_request_all(req, -EIO);
    }
    }

    --
    1.6.0.2


    \
     
     \ /
      Last update: 2009-04-28 06:15    [W:0.069 / U:0.020 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site