]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
block: convert bio_copy_user to bio_copy_user_iov
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 11 Apr 2008 10:56:49 +0000 (12:56 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 21 Apr 2008 07:50:08 +0000 (09:50 +0200)
commitc5dec1c3034f1ae3503efbf641ff3b0273b64797
treed8c2d81ff2d944a0ba43e6ef7284482898af8b3b
parent476a4813cfddf7cf159956cc0e2d3c830c1507e3
block: convert bio_copy_user to bio_copy_user_iov

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: FUJITA 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: Jens Axboe <jens.axboe@oracle.com>
fs/bio.c
include/linux/bio.h