From patchwork Tue Dec 27 15:55:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9489375 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 11D2E62AAD for ; Tue, 27 Dec 2016 16:00:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04310200E7 for ; Tue, 27 Dec 2016 16:00:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED2CD2094F; Tue, 27 Dec 2016 15:59:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7656200E7 for ; Tue, 27 Dec 2016 15:59:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754227AbcL0P7z (ORCPT ); Tue, 27 Dec 2016 10:59:55 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36679 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752415AbcL0P7v (ORCPT ); Tue, 27 Dec 2016 10:59:51 -0500 Received: by mail-pg0-f66.google.com with SMTP id n5so12793072pgh.3; Tue, 27 Dec 2016 07:59:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Up76y1xuD4JK5UpjIWP03oztuKNs8vs2TKICrn3pu+U=; b=LVAVt23zfSaFcQsTaNR+CQCRLImaHQh4AI4Buc+aVuE3ATHLw5Jevlaw66irpr7YKy /G1S10lJqntBB/OUac/zx2XoC64yWSRGp0rcfHUlgOOhE4327XWwOQFTde3SSe5nC52Z cewJTigYig07Qn7GP7MqAR4tamOltC+oE9GfN/F89+SbBBgge7g9g3EOHzoqrmup1UQ3 2Bv8YBh7t2iUjKPMe6RAIz0BcQa86G4T4HgHLg+OW/QjFB39dlcKba/nLQqqu/XG8lL7 m7MeBz+LFognRjkE8OOdQou8hI6x32MhXeLGHVGlblftavaLoW9QJN0RZOG9BuB7QiH1 YPeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Up76y1xuD4JK5UpjIWP03oztuKNs8vs2TKICrn3pu+U=; b=LWx/7SIzmobWdIPDhG5l8vce+ZBgnnpglTp96qi8CzwtlPyJlqzxOEzKCqCM668FpD MNXXLILHJU0AGGLAjjyvHx2v49Kyy8F+QgqVvU/PIvcoh8fBLNJ9VC7oOQlyJcmaFsVk zKQnVZxfdjOJQP/jZY+S6Fxux995yQzbBlag2VPlfaZcv1eEoboyyjvij/oEC0hExF9C cQpoT1+6CjSyozZPIRNjSYeME/pdIxqNAa/kONQqLJdLGlf3RNeQw0g4mhhVwY4gvYAI 7neIDxZYipWTLPNfPXG0C4bWGYOZt/KgFN0kZ0usus7TB9NNKCa7GACPtAZhaQR8zOnv hBWw== X-Gm-Message-State: AIkVDXKlHjgudCl3/4KPcqzoR3HpdM0rxRvAMG8XVWX2nQcgMYybvTVn+13/5vYddMhIwA== X-Received: by 10.98.54.68 with SMTP id d65mr30262874pfa.61.1482854341296; Tue, 27 Dec 2016 07:59:01 -0800 (PST) Received: from localhost ([45.35.47.137]) by smtp.gmail.com with ESMTPSA id p13sm91320795pgf.47.2016.12.27.07.58.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Dec 2016 07:59:00 -0800 (PST) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Ming Lei , Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net (open list:F2FS FILE SYSTEM) Subject: [PATCH v1 06/54] f2fs: f2fs_read_end_io: comment on direct access to bvec table Date: Tue, 27 Dec 2016 23:55:55 +0800 Message-Id: <1482854250-13481-7-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1482854250-13481-1-git-send-email-tom.leiming@gmail.com> References: <1482854250-13481-1-git-send-email-tom.leiming@gmail.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ming Lei --- fs/f2fs/data.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 9ac262564fa6..5d1a192e1c3c 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -55,6 +55,10 @@ static void f2fs_read_end_io(struct bio *bio) int i; #ifdef CONFIG_F2FS_FAULT_INJECTION + /* + * It is still safe to retrieve the 1st page of the bio + * in this way after supporting multipage bvec. + */ if (time_to_inject(F2FS_P_SB(bio->bi_io_vec->bv_page), FAULT_IO)) bio->bi_error = -EIO; #endif