Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp216787lqp; Mon, 10 Jun 2024 01:31:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUcvs1N0pOZRQE7CcOdoh90o9dj1Vr61/vhAaSuCeA2ScXdT2nE7sZlWQHzpqXmvBV2nUGOJrx7j+qyilaDOkTixcxPaSCcrWBG8Zj6w== X-Google-Smtp-Source: AGHT+IEC8Rc4wfqNoD+fzCs0OsnLyuxS+s8zDDMAESzSyZ+pvCd27ULHTtPHYQ6OyOnoYGfxrn+y X-Received: by 2002:a05:6a20:9704:b0:1b2:b3a5:22b2 with SMTP id adf61e73a8af0-1b2f9df7e52mr7330090637.60.1718008288604; Mon, 10 Jun 2024 01:31:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718008288; cv=pass; d=google.com; s=arc-20160816; b=du2fp4u7jNq7zBRYif5bOCQrI09TMJi8DyM4mmgNHxzIO8i07x//KegHGDbcSxobbF UXI4lstcT3u77Ks0bHUufxHjABx2WsK0ldTdg+E9V6aOtp8HIjFzeFZrbzUZ6zLiRNzj KtXErRxFieHDtETOXmZ297FT9ZjD5D0EDCkY8OUuktNuM5dzcBC6mkKB0+W0Gdb7Hq+Y YblKI2AX+8gCaBdR/J6hHuN0Hy8X73t9ScZeXjWvNmcRLcU13ASSLQVdMWNUwSHwA3vV Hafc/sNqi7MGDn6FjJVaICL+nnRhehcH2ihTx+E6gAIf7FJglBL4pe7zedS44IDXqh1G KG/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=yw3XhbiXJGCTPVwL3WdCXnveLeLITAMMgMc7zLy57jQ=; fh=lgmOMhC4RNXtUHIXWlTJjNC7GcAkRRzSvKBTKqsStIU=; b=XesezkSEaWWsOFG/kC+nyipeC3Ih9/9JPq+BH71xH+DocEj6/R18b9SeLMPAbC8dqh 3m+aWBgp7AUL1U1PuKK2zWCAMrihSr5A28M/2+weHKHWX1aRe2nPZ+XXUsg2xNt65w5s p3uRX82sSq6fGaEI6KelnB3ToV264xNY7QlRvYA17kTViI34YdX5f3U3ruJ2jHzEZ6xo qqNd26mdvEpRPH31g5I9tR+qF0dc4/bAl9N4wzEhz/ECf5b26oxg839Z37AuHQkLg5+n jIsO3C223AdVmg1cPUnuA/LIbaqqBVjYPNBj4Ynbu8HMF9WDC3728q00fcRaP0yZWTJ5 BmZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-207835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207835-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f719c485d3si8517055ad.584.2024.06.10.01.31.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 01:31:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-207835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207835-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 12A15B243B1 for ; Mon, 10 Jun 2024 08:21:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F2B16F2E9; Mon, 10 Jun 2024 08:20:59 +0000 (UTC) Received: from mail-il1-f175.google.com (mail-il1-f175.google.com [209.85.166.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C84957C8E for ; Mon, 10 Jun 2024 08:20:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718007658; cv=none; b=iGM9PGXTdPoC+9E1uhlr/rt5SiQtnqE+kY2TkAkwjwpL0h6RMFxEa8U4Blllc21efr0IGdZQaNNhmLOxkvp/PCa787AnZhskD5D2+AzgkBOBllEvZKeMzNMAM9cJ8Cns8DneMSWU1SaUW+7W1cLYhNkSRHlqifRI0VDmMKvZi5k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718007658; c=relaxed/simple; bh=7sgjYt9bByk8VPxzdD6D4OYMgJUX6+aYap9e0viUFSA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=P7KXUr6hlHu7ltIzy8vPQjtROaBrbt+kVeDz/Kn3Nwyvm8187drIL4Cnm54+iA1o2TFa3oPxm1HGslMfVnfGuJnlOTf+52YvM6WvKKRGGwZo1P4Yo1QpiiOu89rDFMzWkA1LO1aTL5vXWIa8ifVXMBbMOj6Cw3IGzdtHgLb7g7s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ooseel.net; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.166.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ooseel.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-il1-f175.google.com with SMTP id e9e14a558f8ab-37588517095so11559735ab.2 for ; Mon, 10 Jun 2024 01:20:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718007656; x=1718612456; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yw3XhbiXJGCTPVwL3WdCXnveLeLITAMMgMc7zLy57jQ=; b=i8YyneoTevxk1CB5WcmsZ7RgLJLJPsQBivLJBkkdbgCUV78byxzB1uI1poiSAf2R7b JyPoRkh73zxt4PcpgHHcRnpb2Y8NipgdQw/3hg5Of7nTmBuAdzXrFsrOfKkp1W9DzCN0 VI5mTpWWI2lvuChl+z8NtikPt5beDXW8xqbtAs8WfSjfA2uaiSoeTOxr9js59RcEMUS9 A9lnsR2bZ8hDESqDfQyDeYECDxp8nN9temv06JB/Wec08ODh+yQVtWFcpX8ULz2WVyJN Fa1AjjOkJR4/fYR8cO9LvgdfOs6hOaPesmuTf7kneq60wW3BTg5GxKrmmUSM54HZZ1JR HNEw== X-Forwarded-Encrypted: i=1; AJvYcCWuolWDlyBS907iKhKbCN9FLLp79cus2zYqMnZuhKUC74D9Pm72+wlT4gT18SHCANTs4YzSsds/9Li9ckSp635BANBYRbUb76bVKkyn X-Gm-Message-State: AOJu0YyL6qAXMWiGHoOg5t2eUpgg97fDByuxhHcfigoWhCMDcq2E/kBs dJy7bZ5JLc5rlPm5qvRnnNC9T8WkGyDVSBwQX9uIzlYNrs+A9eHDDgaBPSSx X-Received: by 2002:a92:ccc9:0:b0:375:844e:bd3e with SMTP id e9e14a558f8ab-375844ebfa6mr66467965ab.32.1718007655667; Mon, 10 Jun 2024 01:20:55 -0700 (PDT) Received: from mail-il1-f182.google.com (mail-il1-f182.google.com. [209.85.166.182]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3759671868csm11655655ab.47.2024.06.10.01.20.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Jun 2024 01:20:55 -0700 (PDT) Received: by mail-il1-f182.google.com with SMTP id e9e14a558f8ab-3748ebe7e53so17346595ab.1 for ; Mon, 10 Jun 2024 01:20:55 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWL1OML3Mjo1+OgK01+nOkmWXndPV8OSK3zc4caioTnKrNJ/TVLU9OvIKGLhaozp+4uXqR0lMe7KnuyLFoY+XG7+kJ/9D7kejvWt7Cg X-Received: by 2002:a05:6e02:1c8b:b0:374:9427:6dd3 with SMTP id e9e14a558f8ab-375803a2d0dmr100405805ab.27.1718007655076; Mon, 10 Jun 2024 01:20:55 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240608152114.867961-1-lsahn@wewakecorp.com> <20240609140341.14ba3a1c62029771d60059ed@linux-foundation.org> In-Reply-To: From: Leesoo Ahn Date: Mon, 10 Jun 2024 17:20:44 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mm: sparse: clarify a variable name and its value To: Mike Rapoport Cc: Andrew Morton , Leesoo Ahn , linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2024=EB=85=84 6=EC=9B=94 10=EC=9D=BC (=EC=9B=94) =EC=98=A4=ED=9B=84 3:08, M= ike Rapoport =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > On Mon, Jun 10, 2024 at 12:39:28PM +0900, Leesoo Ahn wrote: > > 2024=EB=85=84 6=EC=9B=94 10=EC=9D=BC (=EC=9B=94) =EC=98=A4=EC=A0=84 6:0= 3, Andrew Morton =EB=8B=98=EC=9D=B4 =EC=9E=91=EC= =84=B1: > > > > > > On Sun, 9 Jun 2024 00:21:14 +0900 Leesoo Ahn wrot= e: > > > > > > > Setting 'limit' variable to 0 might seem like it means "no limit". = But > > > > in the memblock API, 0 actually means the 'MEMBLOCK_ALLOC_ACCESSIBL= E' > > > > enum, which limits the physical address range based on > > > > 'memblock.current_limit'. This can be confusing. > > > > > > Does it? From my reading, this meaning applies to the range end > > > address, in memblock_find_in_range_node()? If your interpretation is > > > correct, this should be documented in the relevant memblock kerneldoc= . > > It is :-P > > > IMO, regardless of memblock documentation, it better uses > > MEMBLOCK_ALLOC_ACCESSIBLE enum instead of 0 as a value for the variable= . > > Using MEMBLOCK_ALLOC_ACCESSIBLE is a slight improvement, but renaming the > variable is not, IMO. I will post v2 as it replaces 0 with MEMBLOCK_ALLOC_ACCESSIBLE without modifying the variable. Thank you, Andrew and Mike for the reviews. > > > Best regards, > > Leesoo > > -- > Sincerely yours, > Mike. Best regards, Leesoo.