block: pass iov_iter to the BLOCK_PC mapping functions
authorKent Overstreet <kmo@daterainc.com>
Sun, 18 Jan 2015 15:16:31 +0000 (16:16 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 5 Feb 2015 16:30:40 +0000 (09:30 -0700)
commit26e49cfc7e988a76bf1e55cef0d9e438e5489180
tree43a2a3590738ef4097b63719e35fcc761a66e844
parent1dfa0f68c040080c5fefa7211b4ec34d202f8570
block: pass iov_iter to the BLOCK_PC mapping functions

Make use of a new interface provided by iov_iter, backed by
scatter-gather list of iovec, instead of the old interface based on
sg_iovec. Also use iov_iter_advance() instead of manual iteration.

This commit should contain only literal replacements, without
functional changes.

Cc: Christoph Hellwig <hch@infradead.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Doug Gilbert <dgilbert@interlog.com>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
[dpark: add more description in commit message]
Signed-off-by: Dongsu Park <dongsu.park@profitbricks.com>
[hch: fixed to do a deep clone of the iov_iter, and to properly use
      the iov_iter direction]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/bio.c
block/blk-map.c
block/scsi_ioctl.c
drivers/scsi/sg.c
include/linux/bio.h
include/linux/blkdev.h