Message ID | 20230516063821.121844-12-wangkefeng.wang@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp213097vqo; Mon, 15 May 2023 23:27:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4WcoYBmCekuXaFeWDnWle+JHjYvFmBB8AzV8bd9Z5UNxhPaWZW5+GUWJh4mIm8kmWGPqxR X-Received: by 2002:a05:6a20:1441:b0:101:8cad:6db9 with SMTP id a1-20020a056a20144100b001018cad6db9mr30012310pzi.47.1684218451722; Mon, 15 May 2023 23:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684218451; cv=none; d=google.com; s=arc-20160816; b=NLCd51ueiOnTThI5Hl2/5RNzNFt0I7O9c4YbIsGiwTEAW5PLsRAkYbrT5G5TZMCBlV ve036a/8AttNqUNe0nvSOTRP9FBHdXT/qGh3z4zN/RKQc/pdn8ihORyhCS8fFOoK+hpD msq2ilwnq7O7VhobtnfUlgSJtpCNivhe7llzOMexMrsTQlrEghOaA1u2PWjg6CALkiD6 ila0lnOqk+XOfKZk7Vx08H3gdB1szE67YWffAXg3Za4oog9OFxEZIurXlrIBq/tPZNSs PCnvix8oE+NEmx8LkOkuvquSxvf/Z5sOXRZwK6H245NI188lx+eZTzzyQnQ+qVS7yuFE Xvlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=pEQmbXru6q4li0fN/aC7FJHKouP8VLqgIOaYkU8mCOk=; b=L/i6XHMz9s6bbVrtkAJhUyDemh5ckU8ecj/iMqjcME6hV6nV1jCx15uVoDWlE84/9w 54cjD++ZOJJIgJdtk/7lB97aIzQwmQk6mjWyA024QimFnTmEie+KDIytxi6vL66UXzNo T26rYKsyLcc7nFtq8NvgB98gbxIMc5Vp0QhF1I5TabCUpvWXetmLAZi77NKPbYH6F52D YaEJLDmqWeiqIFqRAy+JTKPfr+NSAZINpAEXFuH/Hyp2/ASU8xQ487w7jO6doj6por/M 1jgHb3hWRiyaK8Z9GT54MX02myJs3WY9kcGIgW3vnb6o4OiAEabVNLSC9rXsW+QkvmIf Y2bg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w20-20020a63af14000000b005211941267asi18382317pge.153.2023.05.15.23.27.19; Mon, 15 May 2023 23:27:31 -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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229510AbjEPGWK (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Tue, 16 May 2023 02:22:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbjEPGVm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 16 May 2023 02:21:42 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A81B2423C; Mon, 15 May 2023 23:21:38 -0700 (PDT) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QL5gG1gffzsSGt; Tue, 16 May 2023 14:19:38 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 16 May 2023 14:21:36 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org>, Mike Rapoport <rppt@kernel.org>, <linux-mm@kvack.org> CC: David Hildenbrand <david@redhat.com>, Oscar Salvador <osalvador@suse.de>, "Rafael J. Wysocki" <rafael@kernel.org>, Pavel Machek <pavel@ucw.cz>, Len Brown <len.brown@intel.com>, Luis Chamberlain <mcgrof@kernel.org>, Kees Cook <keescook@chromium.org>, Iurii Zaikin <yzaikin@google.com>, <linux-kernel@vger.kernel.org>, <linux-pm@vger.kernel.org>, <linux-fsdevel@vger.kernel.org>, <ying.huang@intel.com>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH v2 11/13] mm: vmscan: use gfp_has_io_fs() Date: Tue, 16 May 2023 14:38:19 +0800 Message-ID: <20230516063821.121844-12-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230516063821.121844-1-wangkefeng.wang@huawei.com> References: <20230516063821.121844-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766031047075508144?= X-GMAIL-MSGID: =?utf-8?q?1766031047075508144?= |
Series |
mm: page_alloc: misc cleanup and refector
|
|
Commit Message
Kefeng Wang
May 16, 2023, 6:38 a.m. UTC
Use gfp_has_io_fs() instead of open-code.
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
mm/vmscan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmscan.c b/mm/vmscan.c index 6d0cd2840cf0..15efbfbb1963 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2458,7 +2458,7 @@ static int too_many_isolated(struct pglist_data *pgdat, int file, * won't get blocked by normal direct-reclaimers, forming a circular * deadlock. */ - if ((sc->gfp_mask & (__GFP_IO | __GFP_FS)) == (__GFP_IO | __GFP_FS)) + if (gfp_has_io_fs(sc->gfp_mask)) inactive >>= 3; too_many = isolated > inactive;