Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752341AbdHHIqt (ORCPT ); Tue, 8 Aug 2017 04:46:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41114 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752313AbdHHIqr (ORCPT ); Tue, 8 Aug 2017 04:46:47 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A62BC356ED Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=ming.lei@redhat.com From: Ming Lei To: Jens Axboe , Christoph Hellwig , Huang Ying , Andrew Morton , Alexander Viro Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Ming Lei , "Rafael J. Wysocki" , linux-pm@vger.kernel.org Subject: [PATCH v3 03/49] kernel/power/swap.c: comment on direct access to bvec table Date: Tue, 8 Aug 2017 16:45:02 +0800 Message-Id: <20170808084548.18963-4-ming.lei@redhat.com> In-Reply-To: <20170808084548.18963-1-ming.lei@redhat.com> References: <20170808084548.18963-1-ming.lei@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 08 Aug 2017 08:46:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 631 Lines: 22 Cc: "Rafael J. Wysocki" Cc: linux-pm@vger.kernel.org Signed-off-by: Ming Lei --- kernel/power/swap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/power/swap.c b/kernel/power/swap.c index 57d22571f306..aa52ccc03fcc 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c @@ -238,6 +238,8 @@ static void hib_init_batch(struct hib_bio_batch *hb) static void hib_end_io(struct bio *bio) { struct hib_bio_batch *hb = bio->bi_private; + + /* single page bio, safe for multipage bvec */ struct page *page = bio->bi_io_vec[0].bv_page; if (bio->bi_status) { -- 2.9.4