Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756965AbcJ2INx (ORCPT ); Sat, 29 Oct 2016 04:13:53 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36280 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941020AbcJ2INK (ORCPT ); Sat, 29 Oct 2016 04:13:10 -0400 From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , "Kirill A . Shutemov" , Ming Lei , "Rafael J. Wysocki" , Pavel Machek , Len Brown , linux-pm@vger.kernel.org (open list:HIBERNATION (aka Software Suspend, aka swsusp)) Subject: [PATCH 17/60] kernel/power/swap.c: comment on direct access to bvec table Date: Sat, 29 Oct 2016 16:08:16 +0800 Message-Id: <1477728600-12938-18-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477728600-12938-1-git-send-email-tom.leiming@gmail.com> References: <1477728600-12938-1-git-send-email-tom.leiming@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 559 Lines: 20 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 a3b1e617bcdc..8bc13a4461bc 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_error) { -- 2.7.4