From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933327AbcCHLdX (ORCPT ); Tue, 8 Mar 2016 06:33:23 -0500 Received: from mail-pa0-f67.google.com ([209.85.220.67]:35853 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932550AbcCHLa0 (ORCPT ); Tue, 8 Mar 2016 06:30:26 -0500 From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Al Viro , Anton Altaparmakov , Ming Lei Subject: [PATCH 2/4] block: make 'struct bvec_iter' not depend on CONFIG_BLOCK Date: Tue, 8 Mar 2016 19:29:44 +0800 Message-Id: <1457436586-26833-3-git-send-email-ming.lei@canonical.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1457436586-26833-1-git-send-email-ming.lei@canonical.com> References: <1457436586-26833-1-git-send-email-ming.lei@canonical.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org So that we can use bvec iterator to implement iterate_bvec(): lib/iov_iter.c. Signed-off-by: Ming Lei --- include/linux/blk_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 86a38ea..fd8527b 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -26,8 +26,6 @@ struct bio_vec { unsigned int bv_offset; }; -#ifdef CONFIG_BLOCK - struct bvec_iter { sector_t bi_sector; /* device address in 512 byte sectors */ @@ -39,6 +37,8 @@ struct bvec_iter { current bvec */ }; +#ifdef CONFIG_BLOCK + /* * main unit of I/O for the block layer and lower layers (ie drivers and * stacking drivers) -- 1.9.1