Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp448473pxb; Tue, 12 Apr 2022 05:44:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyofV1iFRoQ984LsxBdlVAUcyATbYwzNG7PtdZAJYR7GH3YCuc2AniAHmsumu1hZgHXf/6g X-Received: by 2002:a17:906:c092:b0:6ce:1018:9f4e with SMTP id f18-20020a170906c09200b006ce10189f4emr34742156ejz.430.1649767467221; Tue, 12 Apr 2022 05:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649767467; cv=none; d=google.com; s=arc-20160816; b=FeuMrOJ4FbHmTLidwbQtmiW9xG41ONOm4EVsRa46tTSg50eqc+L6iZ/8nlcAonVkjr Nue2lEb7h6rdOzWFRevYO4gs1bSz9X7560Xk0/OniQQnftTpEVC4Tqk+Z4ukLQRASSXg Dw2clVlHVGpk1heYPFUmT7CoiL/mxgbPmMqcC/ZX0a0gaKs/vZun7sFpx/J/nUJC6u/B az6g4tyKhcNs9bFTOlEKnz2D8/6MeW4I7IGwkcTLdh27Aa5HZUpW+A6Oulg2pEHJwFhL X/b1mHvRgSvkCS57koHVYzsNyHJkZIW6DmCQ9l2Qm7DM8qB99Mh2Y0v2NZKpMcqzfWOz 0Dow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EoFq52mSAifW7hmuVJnEyfr/qKi5kNzEY/xR+93cmVg=; b=W2x0LXvD4p2NK9IPqgBSy+u3+gTrvAzZMIIKeDmDG+r8zEKdVwZ2KPQm9FiIyxrgsI JOJPYrDcX3ukN40o2rqvweWamAeHhQxXeB0MJ9ir7SJPDm9aqSzWOth+uJflRudO8hNo yRges8LakFsgcgQWK3j6egLNno2MVtH5Z9b8AQDiKZM6n+ksoTr1nyFYiRxRNWrNkb0k oWBgOtbAO5yui9oBaoqZOtsf7ETt9j3LjyFRRdkJoqDY52UClrV1za3NvAvRn2/Jlxai V2X/suWPoejvPRRP6MiwOIGlFrgT4O9YIjJjQdNiwL/0d7ddrl0l2lXBhs+BX/FsqNpY TW/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ZYGRV0W+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr4-20020a1709073f8400b006dfc6f53845si11580552ejc.455.2022.04.12.05.44.00; Tue, 12 Apr 2022 05:44:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ZYGRV0W+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347283AbiDKOU6 (ORCPT + 99 others); Mon, 11 Apr 2022 10:20:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347280AbiDKOUs (ORCPT ); Mon, 11 Apr 2022 10:20:48 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B9E03DA5C for ; Mon, 11 Apr 2022 07:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EoFq52mSAifW7hmuVJnEyfr/qKi5kNzEY/xR+93cmVg=; b=ZYGRV0W++ZoliBjPm8B/gRwIu4 yAha5BgUDGee0KMNCZBqDJOA+BzqF0ms9akjt1wPKXlqpSMGBLVI4icLCVOaijECDLG42o9pwoSXo o0hMZnSSZl3f8HP7oXjaF8INUytI/Y7TV/z6CFTuiWgHcnlOOjj9E87a0rNQMqXkpgz3o0MpldTiC ZIzDNVxdScS0OqZipt3YNOzaUVI7ItPQdX96u7P7w0w058N3KnvSc9BB3VtrVZVgVn+0zqPTuoUaM +EtgkgmNXDrUQ2v3YZbMTJKlgwbSB5U/aWpsktKKjYazh5AsR2WUGg+PIKa6xxIDx50xZrC2pXiRj 0oyLBqtg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nduqg-009Lde-5Y; Mon, 11 Apr 2022 14:16:58 +0000 Date: Mon, 11 Apr 2022 07:16:58 -0700 From: Christoph Hellwig To: Miaohe Lin Cc: akpm@linux-foundation.org, ying.huang@intel.com, songmuchun@bytedance.com, hch@infradead.org, willy@infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/9] mm/vmscan: add a comment about MADV_FREE pages check in folio_check_dirty_writeback Message-ID: References: <20220409093500.10329-1-linmiaohe@huawei.com> <20220409093500.10329-2-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220409093500.10329-2-linmiaohe@huawei.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 09, 2022 at 05:34:52PM +0800, Miaohe Lin wrote: > The MADV_FREE pages check in folio_check_dirty_writeback is a bit hard to > follow. Add a comment to make the code clear. > > Suggested-by: Huang, Ying > Signed-off-by: Miaohe Lin > --- > mm/vmscan.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/mm/vmscan.c b/mm/vmscan.c > index c77d5052f230..4a76be47bed1 100644 > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -1436,6 +1436,9 @@ static void folio_check_dirty_writeback(struct folio *folio, > /* > * Anonymous pages are not handled by flushers and must be written > * from reclaim context. Do not stall reclaim based on them While you touch this please add a period at the end of the above sentence. Otherwise looks good: Reviewed-by: Christoph Hellwig