From patchwork Thu May 25 12:53:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baolin Wang X-Patchwork-Id: 13255180 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55375C77B7E for ; Thu, 25 May 2023 12:54:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A74E3900004; Thu, 25 May 2023 08:54:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A2516900002; Thu, 25 May 2023 08:54:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 913F1900004; Thu, 25 May 2023 08:54:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 7E90D900002 for ; Thu, 25 May 2023 08:54:20 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 43449AE5EE for ; Thu, 25 May 2023 12:54:20 +0000 (UTC) X-FDA: 80828770680.16.B4BD791 Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) by imf12.hostedemail.com (Postfix) with ESMTP id 85BEB40005 for ; Thu, 25 May 2023 12:54:17 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf12.hostedemail.com: domain of baolin.wang@linux.alibaba.com designates 115.124.30.112 as permitted sender) smtp.mailfrom=baolin.wang@linux.alibaba.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1685019258; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=zeBwz1t5SdgeV+hU8uGNH5toBIgtcVCmopBMWvvEMdc=; b=rPyz4iT9eTaB7rNNTX6AOA/a1rYFFpYjaLuoRlSsfFL4+Oe0x667ARmnOuc/zl0LtApNES 5epMwSGn6MhvsdsluJs/Y/coZ12KZzASsENP6OT4gIXAl7pSYKkszeftB5n4GOVkk8iKsg jAlWrmx2VMkZQiw38/NzedRkrFIPXM8= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf12.hostedemail.com: domain of baolin.wang@linux.alibaba.com designates 115.124.30.112 as permitted sender) smtp.mailfrom=baolin.wang@linux.alibaba.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1685019258; a=rsa-sha256; cv=none; b=z2JzyW630+B3FD6tYkMFNFuFnz8U7zKPYO4T2bg/UMwR/xEdHX4rHcpKIZH+IOpnmEIJPr 0t+a1bchalgTWPq3VCTw//KT6TfEY59wwOhUkFA70V7xn9VYLtuyWmggPWnwAmFj9dlF8o xeTJshBbkBC0P6EjxyzsT/B5FvUDV30= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R231e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VjSMoT4_1685019250; Received: from localhost(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0VjSMoT4_1685019250) by smtp.aliyun-inc.com; Thu, 25 May 2023 20:54:11 +0800 From: Baolin Wang To: akpm@linux-foundation.org Cc: mgorman@techsingularity.net, vbabka@suse.cz, baolin.wang@linux.alibaba.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] Misc cleanups and improvements for compaction Date: Thu, 25 May 2023 20:53:55 +0800 Message-Id: X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 85BEB40005 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: h5iixq4y13uief8ub8c9y3q4e4zaeikb X-HE-Tag: 1685019257-760028 X-HE-Meta: U2FsdGVkX1+taCfbAhAUHQmXCvGJvJwMknjem1Sh8WmECUzroPYdRChK7ETNecQUi/B45F3KRp/WMnS2ZjcM0489sE4wG/k7R3Hd6+WlJY4rkjt934hW1tVuBnVL5AgNBnEtcuHQ3kDIYY55XhO4MfoBRf6g7PC9urtw1pZfv69f0J0BVxHpZOrf+SXsiXqMuMCUM7LcTgSHLaT2cSfe3CBX7LiqvNfa8uDZ2PM8kmIF52Ja+Ao2cx2Ftb7DYVLorkZFWLAODbzsHAfNmKuWb5qh1HmVtRTahlmfw4jGIWsiF+E48VNaQJIVHZnq7tbMEn03/daIoeJOsstdQ1VIPF9JFoAXNyuITXxrF0md9vSFCJgjXqR3sTqKJ/rrHiEngUMefek64+zQxCdfOwz5NOxCHXV/tYWknPa+SUKqYxq7l4aAxFC6u+Q/mjvHEtV76kMr3d0vZGFWGceG2cBC4K7YUQe6U7gTT/7r33jg4s1IJcvyQ9L+pH/qA01TZpcf9kZvh3obposB/WVqb49lexXL1Yg6PIyq231OznOaeF+Aa5yl2R9RxVuwommaUfFudvsvAcSoX204ACCw4bKrud+uYFQsOsSFAojnZRqEXSza7MP5oq6CNHGTXF7pEZ6qQHBJELPI55y+oi/lcjUJZiR70feqmc4m0w6Xc5ARD/UtLEuYEdH/FUob/Pi/OUWU04pQ6Lm3aseBMYXHrFVciwoSZybqtN6StezL3+MBkpfmk7EplHScQu5J06eQMIXS19tKg1Ay02TCfQ3pR6pQL1qFBHSi5NX8cZsLltfpkX0/zImLs6YhZKlxoKbv29z21XumxTWyXnI1LDt1NkHYrKo5Xkj9zXIuGFVVzygk3JqQMhTfoOkcdsII+YzjVexbthAsBN0o8SUoqzcDGA3p9rMhOS7WUwq2hF9IhYr2pcExTx1EhllWWCrlOwkY1ca8Ei+D6QCxNsM2NINP4z5 kRI0Plcx woJSY0NgxOI4sJpqkeVARz8PJVdS3VwqXvdwOb+6vkV7f9t8ai16aW5ppY0RapPFBmN9I X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi, This series cantains some cleanups and improvements for compaction. Please help to review. Thanks. Baolin Wang (6): mm: compaction: drop the redundant page validation in update_pageblock_skip() mm: compaction: change fast_isolate_freepages() to void type mm: compaction: skip more fully scanned pageblock mm: compaction: only set skip flag if cc->no_set_skip_hint is false mm: compaction: add trace event for fast freepages isolation mm: compaction: skip fast freepages isolation if enough freepages are isolated include/trace/events/compaction.h | 11 +++++++++++ mm/compaction.c | 25 ++++++++++++++----------- 2 files changed, 25 insertions(+), 11 deletions(-)