lkml.org 
[lkml]   [2016]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 14/27] bcache: writeback: use bio_set_vec_table()
    Date
    Signed-off-by: Ming Lei <tom.leiming@gmail.com>
    ---
    drivers/md/bcache/writeback.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/md/bcache/writeback.c b/drivers/md/bcache/writeback.c
    index b9346cd..49a8f8a 100644
    --- a/drivers/md/bcache/writeback.c
    +++ b/drivers/md/bcache/writeback.c
    @@ -112,9 +112,9 @@ static void dirty_init(struct keybuf_key *w)
    bio_set_prio(bio, IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0));

    bio->bi_iter.bi_size = KEY_SIZE(&w->key) << 9;
    - bio->bi_max_vecs = DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS);
    bio->bi_private = w;
    - bio->bi_io_vec = bio->bi_inline_vecs;
    + bio_set_vec_table(bio, bio->bi_inline_vecs,
    + DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS));
    bch_bio_map(bio, NULL);
    }

    --
    1.9.1
    \
     
     \ /
      Last update: 2016-04-05 14:21    [W:5.845 / U:0.480 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site