From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8339311963 for ; Fri, 16 Jan 2026 22:26:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768602396; cv=none; b=Qho3nOynCk9yfNncEFgM840l+RQsu6Xv7UQTrmwSklWgSM/Iqdy+E5vvBYXgC8HqbK063u3I1bDEVzZ5wFRI9x/Xb5MScuBzXIENmdjpHnpMgs8OmTQP+XVWpodPooC+ZApuB/Rze9/ztYh8MavWWHaDyNC4T3PftFp6iaptT58= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768602396; c=relaxed/simple; bh=jISp/PQERBVoxIY52JwSB/f2SYh+cfCMvfV1bJllKhQ=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=KUujwgDLYmFaPyJiARwGYACJiEoL2Rr/eTWndw735F1N/1IfBe7II5DPdQuKmSbh0DTL+G4rj3kUMgeQ44SAapOIEnTvgBgX5fDa2BRIMpR8HJ22BtZAiicPONNoTODQD25UQ3D2y8fpXtUzjcf5zF5DPQwwPHRBGR/hBrTJ47E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=zueuGgvO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="zueuGgvO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B7E7C116C6; Fri, 16 Jan 2026 22:26:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1768602396; bh=jISp/PQERBVoxIY52JwSB/f2SYh+cfCMvfV1bJllKhQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=zueuGgvOAnyooFyM3JlhrCN8Vj4JWFvldvWHUoVt6mtr0glNxpnRaiavAjfHPvm1a WzKd3iwUjgVFuD60vkb13F/uS85XMXhUzoBlNETV+vEoxMbBSTi7kavoHnL/on7GfP 6uR7WjAkCgcoRXBEaVcDzjgFURfCjbZ03D6/ZdnE= Date: Fri, 16 Jan 2026 14:26:35 -0800 From: Andrew Morton To: Pratyush Yadav Cc: Alexander Graf , Mike Rapoport , Pasha Tatashin , kexec@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Suren Baghdasaryan Subject: Re: [PATCH v2 1/2] kho: use unsigned long for nr_pages Message-Id: <20260116142635.b90464ed9772c146a9842370@linux-foundation.org> In-Reply-To: <20260116112217.915803-2-pratyush@kernel.org> References: <20260116112217.915803-1-pratyush@kernel.org> <20260116112217.915803-2-pratyush@kernel.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 16 Jan 2026 11:22:14 +0000 Pratyush Yadav wrote: > With 4k pages, a 32-bit nr_pages can span up to 16 TiB. While it is a > lot, there exist systems with terabytes of RAM. gup is also moving to > using long for nr_pages. Use unsigned long and make KHO future-proof. We can expect people to be using LTS kernel five years from now, perhaps much longer. Machines will be bigger then! IOW, shouldn't we backport this?