From patchwork Sun Apr 14 00:45:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13628861 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 283A0C4345F for ; Sun, 14 Apr 2024 00:46:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 30B546B0085; Sat, 13 Apr 2024 20:46:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 293EF6B0088; Sat, 13 Apr 2024 20:46:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EEDC76B0087; Sat, 13 Apr 2024 20:46:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id D190F6B0083 for ; Sat, 13 Apr 2024 20:46:05 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 73AC2C01DF for ; Sun, 14 Apr 2024 00:46:05 +0000 (UTC) X-FDA: 82006295490.14.EE41130 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) by imf23.hostedemail.com (Postfix) with ESMTP id B0FF3140004 for ; Sun, 14 Apr 2024 00:46:03 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=LmTxheSb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf23.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.50 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1713055563; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:dkim-signature; bh=jl1UMNnxlTwd3Yd2LNXESD1lrFK635rN9IkTCthCSr0=; b=D+LMbMqOKs+/q7IuN7qcPRDRb7YEhCdyqTktXhiyrUq5hocSMukBEuk8mixQ+kn2a0woyB uNXLtdTXB3P/oudcRlYaBkuCZsyvPqQqttgoAN9ryO5Fka5WuyVgMFMdYlRtE6XsYcCBbU Fs6AbkN5xI9ntYsdpcKIbsImULdZch4= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=LmTxheSb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf23.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.50 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713055563; a=rsa-sha256; cv=none; b=ifxr/1OXSxWSdQwrdcPnuod8sLlnSD6GJUbattLLRixVg4jE6So7JjF8pYap8m70YH+fV0 Ofr6azDWtUZ35BB9RmgPvq6JOjZnfrZa9DAOar+30PVYixsg/HQn8uH4kYTAVp4pZ8NEYF 9pYGOTY98c9Xgc3Tf5ZVrxkpfcJtktQ= Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-56e69888a36so2715385a12.3 for ; Sat, 13 Apr 2024 17:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713055562; x=1713660362; darn=kvack.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=jl1UMNnxlTwd3Yd2LNXESD1lrFK635rN9IkTCthCSr0=; b=LmTxheSblcuZZM320OFNmVtXIc4KrGQ8GtlnN+CpHdKOUgdA5jJQxbPqQKsPBpusaL mL/0lecEKJQYmWMjAc89u7Ub3+6kciWcfBIRSD89KnEF5BzSzkcEq+zDrld7u8DS1Ivo qYrxKKVyjfKLFDyW5NCrW1EklHqho2LmTqPVOAzw5CHmanyLHAJzbWrRlZa5fY3MB4bU i1IU3xGZ43Z016jJ6grDs7m/dvu4HbCxYWULAMgg7CaZIENDdwmF1rS/sre/81LFYSPN AnRwIYpjH2dq30t8HBiv98Wdfo1VDy9LY0/61Z5hA7eWAJGYnaNQ1v4Yo2HZrCJsmeso VQDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713055562; x=1713660362; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jl1UMNnxlTwd3Yd2LNXESD1lrFK635rN9IkTCthCSr0=; b=YHBo55/1HFL+c3r6mpmFDH9YroS3+vTQ7ckCclkeyNJ8QLMCWRl48ZrOdMVr2y4l6O LK83X71To9Dhy5uMFb9sw9K01bHIZMbiWox1zI8rl8N5Dan82bB8i3jjJvDJWplQ2phj RV/m72AdJFow9E2MCnutNrU6qSTwhQmQrgAwoXmP1u3jMKAAVYfyQ1ZR6CJYxmBlVBUM 8lWhKjI3jYc7N7Vv+v7E/lwJt6/LVN8GUTZepZ1IybF8S43Ly54Un8Oq4BPBYdyY/Rzo vR4ua89IufrzUTyVfVcAQDxgqdPNdECajpHDmyTbGa1LezSnWKkX6uTMBgVgI3/clFad LxfQ== X-Gm-Message-State: AOJu0Yyqw/o01r2Vixn0w6IevZei/1PfWmK0jzf/2sYsaaPTNwwuZclK 9ELTHD6X6KUMFzgssSuzdZjNis/7SWWZ+3K+r1P7+nbJkTt1ZLhV X-Google-Smtp-Source: AGHT+IF24Zm5BN66L/mKAGgZ6xUBukmBLF9RmhVoEl2YvMrM6U031gK8fCYhRQlhPkcPfPvHHqzzTQ== X-Received: by 2002:a50:cd9b:0:b0:56e:2a38:1fac with SMTP id p27-20020a50cd9b000000b0056e2a381facmr4128472edi.0.1713055562386; Sat, 13 Apr 2024 17:46:02 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id h6-20020a0564020e0600b0056fed5286b5sm2761084edh.55.2024.04.13.17.46.01 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 13 Apr 2024 17:46:01 -0700 (PDT) From: Wei Yang To: rppt@kernel.org, akpm@linux-foundation.org Cc: linux-mm@kvack.org, Wei Yang Subject: [PATCH 3/6] mm/memblock: fix comment for memblock_isolate_range() Date: Sun, 14 Apr 2024 00:45:28 +0000 Message-Id: <20240414004531.6601-3-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240414004531.6601-1-richard.weiyang@gmail.com> References: <20240414004531.6601-1-richard.weiyang@gmail.com> X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: B0FF3140004 X-Stat-Signature: 8r1bk9fajp5h6hum6swaf7zhu18c585u X-Rspam-User: X-HE-Tag: 1713055563-855965 X-HE-Meta: U2FsdGVkX19ADRHzl8yXsqJLnM7b59nOBX18c8vC6pni/KzDpABqL//WDg523RDWU8P9+s5NXIVn/QybkHRWNJpdnaX1cYeapN582sh3VLDXmJFEESK8zrKRMw6DwAvheHAPff+ODtNGadaWMbQdnuM3q1v+HrsAjAh0DszwBOxztj5NSuo1HRzTg/v+RKPxDtsRli0awZMn2itvL8/wLXE/9cwTsp3RMVashJFsxq2y0a1Y0rXrNVbnrjMB0CxQSSWTIW/haDkTq/yjp6zrfStXuTF0r41mVCutmGkohGksL6Sl5JcNDyhIPcj15nJK8Dmg81tRgk5M+bA1xFffqkweB7x18kQ5k0gXyoEVvuttOMd90XnpDo1cwPxX9Oo/v6vDyLWDEGPayEBO39M4Vo1OVxbVGMHKhkWbWj4FlJlNtEBeSqrG7UFO47OEKPclbxHQowusT0QMM7DM6mNefHCKuebFU5HyaoG5c3f/F9B3zabrQ4Tr8wlK3JJr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sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The isolated range is [*@start_rgn, *@end_rgn - 1], while the comment says "the end region inside the range" is *@end_rgn. Let's correct it. Signed-off-by: Wei Yang --- mm/memblock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/memblock.c b/mm/memblock.c index b46109300927..2d7a2431803f 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -742,12 +742,12 @@ bool __init_memblock memblock_validate_numa_coverage(unsigned long threshold_byt * @base: base of range to isolate * @size: size of range to isolate * @start_rgn: out parameter for the start of isolated region - * @end_rgn: out parameter for the end of isolated region + * @end_rgn: out parameter for the (end + 1) of isolated region * * Walk @type and ensure that regions don't cross the boundaries defined by * [@base, @base + @size). Crossing regions are split at the boundaries, * which may create at most two more regions. The index of the first - * region inside the range is returned in *@start_rgn and end in *@end_rgn. + * region inside the range is returned in *@start_rgn and (end + 1) in *@end_rgn. * * Return: * 0 on success, -errno on failure.