• F
    block: convert bio_copy_user to bio_copy_user_iov · c5dec1c3
    FUJITA Tomonori 提交于
    This patch enables bio_copy_user to take struct sg_iovec (renamed
    bio_copy_user_iov). bio_copy_user uses bio_copy_user_iov internally as
    bio_map_user uses bio_map_user_iov.
    
    The major changes are:
    
    - adds sg_iovec array to struct bio_map_data
    
    - adds __bio_copy_iov that copy data between bio and
    sg_iovec. bio_copy_user_iov and bio_uncopy_user use it.
    Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
    Cc: Tejun Heo <htejun@gmail.com>
    Cc: Mike Christie <michaelc@cs.wisc.edu>
    Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
    Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
    c5dec1c3
bio.h 11.7 KB