From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id A0E9A80E9D for ; Wed, 28 Oct 2026 13:50:38 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 69SDnOQc020461; Wed, 28 Oct 2026 16:49:25 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 69SDnOQc020461 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="wkpi5b4r" Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 69SDnK6U020440 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Wed, 28 Oct 2026 16:49:20 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 69SDnK6U020440 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-48dea677afcso596747f8f.1 for ; Wed, 28 Oct 2026 06:49:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBzfrvjse4SacKA7KjYPWCsCq3p8K88jTztzRifTZFEJCqrDRtNC64c4MgIGPe8l7VeQ7hdZwA==@openvz.org X-Gm-Message-State: AFq9FYIrvkVtiHv70eDT6lHPR00Yc5WHnJRzLXM4I5+8IDJTtvEUHXVl 0hD7wDaAj4IOqr65HcJYz9bc7F9LuoTitDrUINHDHPO3iFbHK+u502zE6Kt/Lf6Zm56Btkj4b1c ttoqD65/pQ2ixaasdmJEjwKGMQVk1+j+EpnRE9fxYVwqNwLYZhsx9Wg== X-Gm-Gg: AYBFou0Kdpb+AH8CIv6OdrReEK4BTQPFoMtzznIbTFpMSzGgQ7D8bmHSjciP8zRfqgR cbwPh837jPln4ZQ5AiyAO0D7Mq/VDSFn+/QnukcnWrVojxVp+8jh1eBMfL3Mutqo8rzvfGLpIW4 AjoT8sP/Z05DK5vUa2WXa9UiHBUBUS5H789rwvwEKsnbezb45YOVXY2VUUajKeCccsXeoTTruzM V6lm1wUwG2l4ghApQ7JvVBTjw1gMWyF9kVMGxkc7iG2nVXuq2ZUy1V1VB/TuDdsaOFt6StuX59K QD0QWa8KJENHU6oi+rd2LoXofpyrYEOnAclLOD65BN+8OG0lSHBGdmCedRCvmAVlWIpw4XsZoFf ACwhTvjtd3qukZMSFlw== X-Received: by 2002:a05:6000:22ca:b0:48d:f4ef:62e7 with SMTP id ffacd0b85a97d-48e559bf25fmr15139588f8f.0.1793195359826; Wed, 28 Oct 2026 06:49:19 -0700 (PDT) X-Received: by 2002:a05:6000:22ca:b0:48d:f4ef:62e7 with SMTP id ffacd0b85a97d-48e559bf25fmr15139468f8f.0.1793195359103; Wed, 28 Oct 2026 06:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1793195359; cv=none; d=google.com; s=arc-20260327; b=MWtHBT5EaXqqpYLYssaH/762z1i4M3LKeFNBOmUdnXiabnO7WbdR6sSNvZAusR5l0B +FIAgsq2f0D+D/MhvS1Gd3e9gl7OA93G0QrNoikDEpmi1b7FmGBtv7x8TdLpKvRkiUbr zHxYsBDjWRjQkd5hCzHhdWdUX6EDTb2izhlSOLLRaOTCv3fO49w6R3grxsQ/yZ/4/mQY 8uyv8ShGSk4B8FC1ovqHatw5EEGOITzM1iHg3HeBNxyvd01NUtJVDE5pPXrMNfGzOqlw 219a9ne42F1Xip/KGuC3f6410t6cqsozfvCYgOKyqpRHLe38u1BY+rJNNmBnybfvyPcS He3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:dkim-signature; bh=h+oYc+KPHlwP91SFOiKCNodu9yU292c5Tt31X2ZxKIo=; fh=bRkZfFa6377EgOVW8zBDri2gGIQqe/ZeiH+ijEM/ROI=; b=I1iYT9N13Pc4qnW3BXXlbGD0+UmlYtJ2Cw6L1icoEgKYnIE10obTXFVYKpyACwBPt9 rAXCjufyVy70DUzOb5GQwdBc6AkU7XA367dhM85kNOj5YnwHatP6OAl86RgCdrYKyW4S d0wM8ttvXKPg2RZFGH/E/c3koz/NKjWm2EIrZkAJwCZZMSe16PcP/oRlF9azBqA6gSnP wAASb7lhnsoYle7TtVs9mv+w7/hsEczW06uCgU1hbwJNvl5kHnvBQMHcmTrMORIYR7OT 0f9WpH7aKUxKBUdJqz3mCnIQt7M/YW/Tj7xbNQSsWK2Q96uQ0i1nE108dPpXXTsLIcnv N7iQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=wkpi5b4r; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-48e3ece8d6dsi25905439f8f.182.2026.10.28.06.49.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2026 06:49:19 -0700 (PDT) Received-SPF: pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=wkpi5b4r; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Content-Type:MIME-Version:Message-Id:Date:Subject :From; bh=h+oYc+KPHlwP91SFOiKCNodu9yU292c5Tt31X2ZxKIo=; b=wkpi5b4r8BNyQQwfcJF Q3L+Q8dzD690fs8HfjQ5EU8yqMvlP4c8bir9+w3iBzABvC/O+AA+7PuXM9Lsa0pJ7ORCnJWGxlXl6 rQP6g53ZP/D6MQe6EzN86cmf/axiQvijKKtZn1C3lgmxZBnBQ71tvjLcBsORVETibmD9k8z/buNfZ eaRjgx9cGArDWY07nQDiIbg8RB5QGfIpIwkYdGaGD8w+8lx6kiHsNbZ7z6n5RTrQzFl55r2ccWuHF 7hYiCBPu19SJjOvpZXcbQ/GFiYuLTn2pP44AwyRPKMpLJrQwb7lR9EZHUlA5IvxemdXiyCylAi3+V qzO0L8ck5q5Pcfg==; Received: from ch-demo-asa.virtuozzo.com ([130.117.225.8] helo=f0.sw.ru) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xM3y0-009ApT-1O; Wed, 28 Oct 2026 14:49:17 +0100 From: Konstantin Khorenko Date: Wed, 28 Oct 2026 14:49:14 +0100 Message-Id: <20261028-b4-prep-khorenko-vstor-152197-numa-migrate-cleanup-v1-0-aa959eecd3fd@virtuozzo.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAFr94WoC/13NSQ7CMAwF0KsgrzFtqlICl0ACxAaxyGBoGJLKa SukqncnBYkFy29/+w0QiR1F2MwGYOpddMGnIOYzMLXyV0JnU4YiLyqRFxJ1iQ1Tg/c6MPl7wD6 2gVEsC7Feoe+eCp/uyqolNA9SvmvQGlNKaaUVeQXpcbq/uNcHPUFtHMqFgPN3ETt9I9NO5FTVK hJqVt7U00iX2YRnP/y4P2x3CRdV/ocHtsQwjm+xdA2v4gAAAA== X-Change-ID: 20261028-b4-prep-khorenko-vstor-152197-numa-migrate-cleanup-dcc488d8d106 To: Pavel Tikhomirov , Vasileios Almpanis X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1616; i=khorenko@virtuozzo.com; h=from:subject:message-id; bh=7uJODVNfRjWFUPN0lsZgK1su6WVSMWIm5y1R5zZ7FEQ=; b=owEBbQKS/ZANAwAKAVGWCkf5YVwqAcsmYgBq4f1cUe7/B4311LsZtsesQOJB3jE/mUgffg97D xUzdtkgXq2JAjMEAAEKAB0WIQRWD23IPcXT0GO9CCxRlgpH+WFcKgUCauH9XAAKCRBRlgpH+WFc KiIOEACDOcEtNxxlbKRyW74sIc4akYOu9J6IFuT/qJ0hjwVmzFRbZcNHIMZh4pQHjlAl96GhGBm JWrgXo00q1x7mhq2gfZxGv2fqSCi17JiDnl5/EEq2KAhPE7QjBLhCbbbAov2/8Tv+2dCghNJQ+5 2ipi1WmjMl2poFFMPHLIDKj2REkDb2RFzq92EHkY8ZhNZeT4nNZ+xKndmBBAhYMg92XA1PJC1lO SdyUcUymSd0oMlFVbreOeoUnaYFSWBGj0YlYElqMdib3VBcHtvidDWm00QGnmDxYFfI1JDYdN58 5IwXm6iwtgDWP0bC1BkunxT/pNCbUl+0XT+rmrAkixBAM3kAhLIPo8fsL7g+g9Ep3VNK3Muxb3h jwGXaCDCzdgSBMLy5V2B5c1u0KrzLP+KFTxjC8lsjSdqJ+2Z1pkBrv+7VVSw6RdnsZGvDh3k6np z4va3ydCpjeHb6B5PNc85OuFMr4Dp8R1J1mWQU5fPAMZHX2IkA2MnSbdhVllPhHiMZMhddhc5e+ FTBO7dVsxftVntSWG4Q57nY4E2Yb3Fy72yu5lrD4gwRCBiiAu95CVytw8PVyTLCxwh/WAu2A4Ir KJsxU8jBkE1YHV9frpC/HTf85aeo9lqPtRwboUsMAYE5XzS9ET4ZxdVMy5AF9WnHqRu7JA0m1SO lxrqhSa7fPSeLqw== X-Developer-Key: i=khorenko@virtuozzo.com; a=openpgp; fpr=560F6DC83DC5D3D063BD082C51960A47F9615C2A X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.1 0/3] mm/memcontrol: tidy up the memory.numa_migrate code X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org Leftovers found while fixing VSTOR-151607, where the allocator of memory.numa_migrate had fallen behind the upstream function it was copied from. Nothing here changes behaviour. Applies on top of "mm/memcontrol: numa_migrate destinations of the source folio order". - 1: update_lru_sizes() lost its only caller when the isolation loop switched to lruvec_del_folio(); static __always_inline, so no warning ever came. - 2: the comment in the isolation loop told the rebase history of the code. It now names the upstream functions the loop and the allocator copy (isolate_migratepages_block(), isolate_lru_folios(), alloc_migration_target()), which is what the next rebase has to compare against. The commented-out conditions and the pre-folio name of the allocator go with it. - 3: the MAX_SCAN argument of memory.numa_migrate is documented in pages while the scan counts folios. https://virtuozzo.atlassian.net/browse/VSTOR-152197 Assisted-by: LLM Signed-off-by: Konstantin Khorenko --- Konstantin Khorenko (3): mm/memcontrol: drop the unused update_lru_sizes() mm/memcontrol: say where the numa_migrate code comes from mm/memcontrol: memory.numa_migrate MAX_SCAN counts folios mm/memcontrol.c | 54 +++++++++++++----------------------------------------- 1 file changed, 13 insertions(+), 41 deletions(-) --- base-commit: 8f4b2db111bee113348656f1b1f98c841d7c19e7 change-id: 20261028-b4-prep-khorenko-vstor-152197-numa-migrate-cleanup-dcc488d8d106 Best regards, -- Konstantin Khorenko, Virtuozzo Linux Kernel Team _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel