From patchwork Sat Oct 29 08:08:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9403161 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 36DB76070E for ; Sat, 29 Oct 2016 08:13:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2567C2A597 for ; Sat, 29 Oct 2016 08:13:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A6A12A5EC; Sat, 29 Oct 2016 08:13: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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 C572E2A5EA for ; Sat, 29 Oct 2016 08:13:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942197AbcJ2INp (ORCPT ); Sat, 29 Oct 2016 04:13:45 -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 Received: by mail-pf0-f194.google.com with SMTP id n85so3384877pfi.3; Sat, 29 Oct 2016 01:13:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uOR8pZQSTBCJ5x8cQYqciFNXAEopp2F8N5IszK0W9sk=; b=g/Qm8YSP6Th7dhMIWRJZpgDOn2W3iXYNKo4CfxSq1VBWdRthgKcxrK1QnO8S9/ZxZy UgwwMOAbqsgPo09t5dcDaNMypJseyX6c/fDFoOxUdYwrlZ/Ns11xaytMngDEjdS5lAqx I0QmRWGU1ulyXtC/V5OS1ygkLs6z3jFVRtfvx4E1QkdJpUcL/chNEshEhTjoAgEnjqQG AJaua2R2cfLIVsbJ7ltUE8GIW3M/apbTCGzPUApMlm8pa3oLHXqQ4eU174MAxaxaWlk0 JDQa4FZJNkbjg2BIxdBPkOKROa0mFUWDe8yoUjEqJ0B04pzDzi2LSHRYsecvCIv7QxiD QzGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uOR8pZQSTBCJ5x8cQYqciFNXAEopp2F8N5IszK0W9sk=; b=UxbG8VIpLxWdus3yqq0lMmzNg+U6YtFTUrjulAy54PFfnYvlWi0JEPNLuxQDhSltXw xqrHbkwu7X1ySPgdMelDkOZp3tz+VcXHgLVhk0uR98e1KhcmjXbB4mLPoe9bqXyn0hBH mPdycGtyAOxDiH5M+j8V0OhGhZSxnpnG8KBgmIk/20OeS0kBZ3LVyI2P1bvVniwe1dSf pAQHJx+gd5PgcxpCqD6F1d8J4IXsNVl0AU/oDMaA+NB90I3Q43GCJwCZTmxxUM/tz7Du 2stzV0UPxwqDv401xtJwAiisQpRu4RrEJqF/PxagpktlfJn7eB1gSbb9ldAv2RMGlnLZ r9CQ== X-Gm-Message-State: ABUngvcdf/362YrUSbhTU+CfOG+XCrK4ddhtwMdGqi6xj/i63hYwwpyBvgAt9WAGQWf1/g== X-Received: by 10.99.185.4 with SMTP id z4mr26395040pge.179.1477728789807; Sat, 29 Oct 2016 01:13:09 -0700 (PDT) Received: from localhost ([45.34.23.101]) by smtp.gmail.com with ESMTPSA id u10sm23549175pau.32.2016.10.29.01.13.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Oct 2016 01:13:09 -0700 (PDT) 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-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 --- 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) {