Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3340227pxb; Wed, 14 Apr 2021 03:14:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVicGv9gvTAPabvu3NaZqF+uqdcVWpUc5dEEro0jASRRORFY0y1TsPL0vHALpvvc85Lj7T X-Received: by 2002:a62:824c:0:b029:21b:66f5:c813 with SMTP id w73-20020a62824c0000b029021b66f5c813mr33448937pfd.32.1618395289349; Wed, 14 Apr 2021 03:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618395289; cv=none; d=google.com; s=arc-20160816; b=aczZrIlQKZmXVI6KD677cn6wekfEzyjdFQ6Bx+tcYrTD3CsujxEfARgQAopuJ9/w1/ UbBIUGKH1xacQqDQC7r/581RLKu/4H6l3m/0JfbgUUWjKE0meWNvyuzisAuk+k9hmF4S CepLp/fs3dZMPxr+wfsgEqEfmYNrdzENkEjqDlv0wo1FqSGsiLicvXOclHa3Xgqr38XC 5P/DBRvZn3diSfvMSerlpquZmXuX5JgjM7iSixAIvZ3AFWsUQzwd0f3YgCp6Q+Rgph48 zaVwEKw9fmYnCNv06KWJA1A/GxmdKLJPptJt9J37grMwe+wh5aCv4/hXxhvxxGv9rzwW mc1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=q6IJEaeWPB4a2+wDSb61hCCopPwO1ptK6VxoTlHhBZE=; b=JoFt06MfYlynmBaxDZ+bbybZU4j6Ol1QehlsG09oNVvESErYpwL9JtkPLWlYY99BeZ 5x0lkwrthDQIGb39jpxNo0B3jp+EfAF2hByKKjGCcjVcQ1g+vBYZGrEo9CruVa7FMv4o vZLPbixQk402dobMouWCfujSjPvP6imx6IcXjoVXPxCuOWOq0XF8admI4R3M3WuabETw qk2D7j4K13DsoJ1lI5xORY6MPimaCgTEzDxu8x3mtvc4v2GjRDm+TcgHR43QqkB5srgl jMvEOqebxjT4h7hf5tntcW109m0qev/dowz4V9itxX7yvL37MAW2mMunBhWg5HQVM1aC LlvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si6532494plh.76.2021.04.14.03.14.34; Wed, 14 Apr 2021 03:14:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244480AbhDNC3J (ORCPT + 99 others); Tue, 13 Apr 2021 22:29:09 -0400 Received: from mx20.baidu.com ([111.202.115.85]:37472 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231379AbhDNC3J (ORCPT ); Tue, 13 Apr 2021 22:29:09 -0400 Received: from BC-Mail-Ex18.internal.baidu.com (unknown [172.31.51.12]) by Forcepoint Email with ESMTPS id C0DAA8386E1067EA70E7; Wed, 14 Apr 2021 09:42:06 +0800 (CST) Received: from BC-Mail-Ex20.internal.baidu.com (172.31.51.14) by BC-Mail-Ex18.internal.baidu.com (172.31.51.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 14 Apr 2021 09:42:06 +0800 Received: from BC-Mail-Ex20.internal.baidu.com ([172.31.51.14]) by BC-Mail-Ex20.internal.baidu.com ([172.31.51.14]) with mapi id 15.01.2176.009; Wed, 14 Apr 2021 09:42:06 +0800 From: "Chu,Kaiping" To: Oleksandr Natalenko CC: "mcgrof@kernel.org" , "keescook@chromium.org" , "yzaikin@google.com" , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" Subject: =?gb2312?B?tPC4tDogW1BBVENIXSBtbS9jb21wYWN0aW9uOmxldCBwcm9hY3RpdmUgY29t?= =?gb2312?Q?paction_order_configurable?= Thread-Topic: [PATCH] mm/compaction:let proactive compaction order configurable Thread-Index: AQHXL7zzcaEIrraHzUCH0C8T1IQ/zaqzPI6w Date: Wed, 14 Apr 2021 01:42:06 +0000 Message-ID: <9ca9b808cc9a48518a7da271e36395e5@baidu.com> References: <1618218330-50591-1-git-send-email-chukaiping@baidu.com> <20210412165741.shqududzlfhge7ff@spock.localdomain> In-Reply-To: <20210412165741.shqududzlfhge7ff@spock.localdomain> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.22.194.34] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgT2xla3NhbmRyLA0KUGxlYXNlIHNlZSBteSBhbnN3ZXIgaW5saW5lLg0KDQpCUiwNCkNodSBL YWlwaW5nDQoNCi0tLS0t08q8/tStvP4tLS0tLQ0Kt6K8/sjLOiBPbGVrc2FuZHIgTmF0YWxlbmtv IDxvbGVrc2FuZHJAbmF0YWxlbmtvLm5hbWU+IA0Kt6LLzcqxvOQ6IDIwMjHE6jTUwjEzyNUgMDo1 OA0KytW8/sjLOiBDaHUsS2FpcGluZyA8Y2h1a2FpcGluZ0BiYWlkdS5jb20+DQqzrcvNOiBtY2dy b2ZAa2VybmVsLm9yZzsga2Vlc2Nvb2tAY2hyb21pdW0ub3JnOyB5emFpa2luQGdvb2dsZS5jb207 IGFrcG1AbGludXgtZm91bmRhdGlvbi5vcmc7IGxpbnV4LWtl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