Message ID | 1477728600-12938-19-git-send-email-tom.leiming@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> 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 965A260587 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Sat, 29 Oct 2016 08:29:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8332A2A655 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Sat, 29 Oct 2016 08:29:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 772B22A678; Sat, 29 Oct 2016 08:29:16 +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 3A5502A655 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Sat, 29 Oct 2016 08:29:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942426AbcJ2IN4 (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Sat, 29 Oct 2016 04:13:56 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35725 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941455AbcJ2INP (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Sat, 29 Oct 2016 04:13:15 -0400 Received: by mail-pf0-f196.google.com with SMTP id s8so3378950pfj.2; Sat, 29 Oct 2016 01:13:15 -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=WjRiADMMtvCO0nzhsH+5TMkEpaEVCYIlhVZa3bxolJ8=; b=bqm//WqGFquvwqmOcQClAidmZofViWd0ggUdhCLMbYYFs/dKitrbpRkjvxddm6VRuK uyR+YECewVcDoFXKG/1fvhSDCEMuCufk3WKUXJPr8+b7iYhDNe5vJ1rgFRtN6EwFKgP8 Gjw9rnhhQVjD6rJNgyzhu7kdYssD40GCl3Oiqr/X/WhQxEoq+NJdmDalgarSauMKGLo2 /NmybANGou7jRg6HLf/Bj++sIgzpEYYSeWjrfGUAF98Y6aPviSfg6m1UTHD7tlL7Amvp ljPYfsuwdq/j55q2U+rCt1Pb254Be7QF1nHWCS30NyvhXFOconJkqOfnJxZeC1baQF81 pUtQ== 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=WjRiADMMtvCO0nzhsH+5TMkEpaEVCYIlhVZa3bxolJ8=; b=jUETyyhhAOK/v9YIQ4wDaRCFHax8z083BMFZIDoHXQ5nZVyYoGswa8R9I9ni/3ujmD lJi5oVuLHZHfipSF4nMpz1VCPLiVvkzQNcfjQFaSjwQJ7clw6Hbq+zxKudNAHJ4E7lwP gVhqzQzME+bgIvDpLoiERwNXsO5IdqBpyLpLtWdl56ydlimSnqO2vTsllR7Ro+jKpptk dstnJQxeeUysnXZOEn04mVcXqbi1Gu2GcS4EFacw0vyUbqg15ocF2/AdoxqhXDRlSzZF gpKrKDZw4FuMuyxNa5gPVmMXbJ+cmhMGWGbLFJyhjfs4jTLmNbjd8Uz6WNOsKvC9T/Kk 9ZtQ== X-Gm-Message-State: ABUngvcT5MOxm0yFWveJnW+9/w9v0klpVjrnrqwFAUmyJewby3w4fA3PzP8ujCYTKqLbyg== X-Received: by 10.98.24.198 with SMTP id 189mr31410156pfy.31.1477728795071; Sat, 29 Oct 2016 01:13:15 -0700 (PDT) Received: from localhost ([45.34.23.101]) by smtp.gmail.com with ESMTPSA id x123sm9140241pfb.95.2016.10.29.01.13.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Oct 2016 01:13:14 -0700 (PDT) From: Ming Lei <tom.leiming@gmail.com> To: Jens Axboe <axboe@fb.com>, linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig <hch@infradead.org>, "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>, Ming Lei <tom.leiming@gmail.com>, Andrew Morton <akpm@linux-foundation.org>, Michal Hocko <mhocko@suse.com>, Minchan Kim <minchan@kernel.org>, Mike Christie <mchristi@redhat.com>, Santosh Shilimkar <santosh.shilimkar@oracle.com>, Joe Perches <joe@perches.com>, linux-mm@kvack.org (open list:MEMORY MANAGEMENT) Subject: [PATCH 18/60] mm: page_io.c: comment on direct access to bvec table Date: Sat, 29 Oct 2016 16:08:17 +0800 Message-Id: <1477728600-12938-19-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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/mm/page_io.c b/mm/page_io.c index a2651f58c86a..b0c0069ec1f4 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -43,6 +43,7 @@ static struct bio *get_swap_bio(gfp_t gfp_flags, void end_swap_bio_write(struct bio *bio) { + /* single page bio, safe for multipage bvec */ struct page *page = bio->bi_io_vec[0].bv_page; if (bio->bi_error) {
Signed-off-by: Ming Lei <tom.leiming@gmail.com> --- mm/page_io.c | 1 + 1 file changed, 1 insertion(+)