Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3401125pxb; Wed, 14 Apr 2021 04:54:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLHjQer+EpjPSiHYjWAG2UrDnZX1fK4gyeTXJW+SSri4ioa2mEYETCqSnkfr+Kkc58P1Xr X-Received: by 2002:a17:90a:f298:: with SMTP id fs24mr3258536pjb.129.1618401250432; Wed, 14 Apr 2021 04:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618401250; cv=none; d=google.com; s=arc-20160816; b=L8I0+7FJZJAAydD7MfNNRLi6hPeP97lH4tLnIAsXxqJhrfEDjSGi71HPQwSd1MeGKs RIgwXdPGX+i31b1qzGcJK+KKIIH6j8HXK1K9WYWjeEXn6vKtyC2SsxYLpMX3+ADNF/pr Ur0/zqEKxmOOCi5xNN9nbmqAsNj35EBRtUihMHndcFO13tBiDcgE7PipalpPLw4kXWqO M3NtdfhcXv2WEZj9wpQDv0fi8OcuYQb7RgePw/vorIwaivnG8odtVfddqB/t0HGNxL+y rMgCxrB5AE+Ik22njMaFzxIqvZJTx1wBWPbr2iOunQvw4pwfAdnhCsc3LgRov/6YJmmo 0ABQ== 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=63WjskayQEGkDpJdwka1e+W8pjXSw6ayt2bCI4EJnJs=; b=EwPMR7jOj3sAhzky08Zj8SS2Q5/kkj9k0PFIZYpHcXnTHWmfdkYHA3Ok9RqyZTW/mn a2LoNPJOz9pfQ77buEeYOtLdnkBdWocpM+g/VVJxEcsP3bwhonntqjERNvIoBida82/J IX3MokQHwB7b4pp2mGXO7mPJJjVz5jsvOLR0mKyPj86l5GK+5hfBZ7Eamw5GJWyqMwYQ zBJk0P2aOaryEgYSQVkvRhUlBp91fU5DkyuLBFtBPV6BE8uCs1aHuqqIQ0poUOs/F1jq dZXXj8cRHiFETFASsm3KYzSPJXcJRrrjMw4u3miytsu7CaGR8UZvHXoU9+RFLLr+XtKr /aQQ== 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 x12si20424819pfc.253.2021.04.14.04.53.57; Wed, 14 Apr 2021 04:54:10 -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 S233058AbhDNCMO (ORCPT + 99 others); Tue, 13 Apr 2021 22:12:14 -0400 Received: from mx20.baidu.com ([111.202.115.85]:43602 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229769AbhDNCMM (ORCPT ); Tue, 13 Apr 2021 22:12:12 -0400 X-Greylist: delayed 912 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Apr 2021 22:12:09 EDT Received: from BJHW-Mail-Ex10.internal.baidu.com (unknown [10.127.64.33]) by Forcepoint Email with ESMTPS id C3A7721787E3E2184197; Wed, 14 Apr 2021 09:56:32 +0800 (CST) Received: from BJHW-MAIL-EX17.internal.baidu.com (10.127.64.19) by BJHW-Mail-Ex10.internal.baidu.com (10.127.64.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2106.2; Wed, 14 Apr 2021 09:56:32 +0800 Received: from BC-Mail-Ex20.internal.baidu.com (172.31.51.14) by BJHW-MAIL-EX17.internal.baidu.com (10.127.64.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2106.2; Wed, 14 Apr 2021 09:56:32 +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:56:32 +0800 From: "Chu,Kaiping" To: David Rientjes 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: AQHXL8lZcaEIrraHzUCH0C8T1IQ/zaqzP1Vw Date: Wed, 14 Apr 2021 01:56:32 +0000 Message-ID: References: <1618218330-50591-1-git-send-email-chukaiping@baidu.com> In-Reply-To: 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 X-Baidu-BdMsfe-DateCheck: 1_BJHW-Mail-Ex10_2021-04-14 09:56:32:776 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgUmllbnRqZXMsDQpJbiBvdXIgY2FzZSB3ZSBkb24ndCBjYXJlIGFib3V0IHRoZSBhbGxvY2F0 aW9uIGRlbGF5IG9mIHRyYW5zcGFyZW50IGh1Z2UgcGFnZXMsIGJ1dCB0aGUgcHJvYWN0aXZlIGNv bXBhY3Rpb24gaXMgcmVhbGx5IHVzZWZ1bCB0byB1cy4gSWYgbm8gcHJvYWN0aXZlIGNvbXBhY3Rp b24gY3Vyc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