From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932974AbcCHLeK (ORCPT ); Tue, 8 Mar 2016 06:34:10 -0500 Received: from mail-pf0-f179.google.com ([209.85.192.179]:33829 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933024AbcCHLaU (ORCPT ); Tue, 8 Mar 2016 06:30:20 -0500 From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Al Viro , Anton Altaparmakov Subject: block & iov_iter: use bvec iterator to implement iterate_bvec() Date: Tue, 8 Mar 2016 19:29:42 +0800 Message-Id: <1457436586-26833-1-git-send-email-ming.lei@canonical.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guys, The 1st two patches move bvec iterator helpers out from bio.h, then they can be used even if CONFIG_BLOCK is disabled, so not necessary to use iov iter own approach to do the job. One motivation is that in the future we may support multipage bvecs, as interests[1] have been shown in this idea, so looks better to unify the implementation now. [1], http://marc.info/?w=2&r=1&s=++[LSF%2FMM+ATTEND]+block%3A+multipage+bvecs&q=t include/linux/bio.h | 55 +------------------------------------------ include/linux/blk_types.h | 4 ++-- include/linux/bvec_iter.h | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/iov_iter.c | 31 +++++++++--------------- 4 files changed, 93 insertions(+), 76 deletions(-) Thanks, Ming