From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: switch loop and target to use ITER_BVEC iov_iter Date: Sun, 18 Jan 2015 16:07:01 +0100 Message-ID: <1421593624-4462-1-git-send-email-hch@lst.de> Cc: Jens Axboe , Nicholas Bellinger , Ming Lei , linux-fsdevel@vger.kernel.org, target-devel@vger.kernel.org To: Al Viro Return-path: Sender: target-devel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org This series adds two new helpers to easily read from and write to bio_bvecs, and switches the loop driver and target file backend to use it. Using bio_vecs directly avoids the need to kmap individual elements in the callers, which is epecially important in the target driver, and also gets rid of the horrible splice code abuse hack in the loop driver.