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 CEF3233374F for ; Thu, 19 Feb 2026 14:31:39 +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=1771511499; cv=none; b=peW3q3OjJ0gAIHq0JuoulSTA/RgjVl/2dDryjOK05ukgT8gkGvNJTu0wio3vCyNaIG7VzcYKM2qgdW5Q+s7S2O31htEJxChNpXNCbAa0fIeXuwVoyHY/Dc46kZxWDWa/3UxcKorH06zuFC3aAykvGFNVb2akB5Y1edNj5WVnjug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771511499; c=relaxed/simple; bh=tiKZimpL/sJd3I+RYRg7iv8iq/JXXydVHMkEhmQtc/s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GVh8aHR/svTlDVi4A80Aa4jrJtxfzqXYR8QcPXN4EH6Hr+Zw5fEq7VJ9yw6uYtvAiTFBn6Nr3WRh17mnvfkQvEGABR+V4e+/JSArasHPaL2WCN4djnXYdbUwhmgyz++gSZ326P+OabU8c75Tk+ULTYvzL+oTONcfI+Ib12fbO9w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OVaaqx93; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OVaaqx93" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4482C4CEF7; Thu, 19 Feb 2026 14:31:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771511499; bh=tiKZimpL/sJd3I+RYRg7iv8iq/JXXydVHMkEhmQtc/s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OVaaqx93UnEx0HVCo++C6fPmTt4RqFUx+JjYXfV6Sk4uYwxs0auvRnZQExik4WZze JuGu0N5SJCMu91782PBVzj8ya6QVdNgtY49vrBR6vfsiLtQ3wq79MCwzUMICtuiXp4 K6/7uUXZvzDFepBYDxcDX1FXQ7O6yKVB0cVxVso0wUkelY51dt+mEBCnmaif3MRG+T 81anpEqIJV5OCUrvgpZCVHoCGkDyzO58G7e52AhqikuI9CeUVcXmQZxRZZoXyJLYx3 CrtVyaPVbK98dlVZPE893k3eBbMthkKWu/28yaDXGchhS7lYCI/9LzLA+wRl5OabOT J9dVRao8Oc0RA== Date: Thu, 19 Feb 2026 15:31:35 +0100 From: Christian Brauner To: Jeff Layton Cc: lsf-pc@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Jan Kara , Al Viro Subject: Re: [LSF/MM/BPF TOPIC] Should we make inode->i_ino a u64? Message-ID: <20260219-portrait-winkt-959070cee42f@brauner> References: <08f8444c7237566ffb4ba8c9eb0ab4b4a5f14440.camel@kernel.org> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <08f8444c7237566ffb4ba8c9eb0ab4b4a5f14440.camel@kernel.org> On Wed, Feb 18, 2026 at 10:36:01AM -0500, Jeff Layton wrote: > For historical reasons, the inode->i_ino field is an unsigned long. > Because it's only 32 bits on 32-bit CPUs, this has caused a lot of fs- > specific hacks on filesystems that have native 64-bit inode numbers > when running a 32-bit arch. > > It would be a lot simpler if we just converted i_ino to be 64-bits and > dealt with the conversion at the kernel's edges. This would be a non- > event for the most part on 64-bit arches since unsigned long is already > 64 bits there. > > The kernel itself doesn't deal much with i_ino, so the internal changes > look fairly straightforward. The bulk of the patches will be to format > strings and to tracepoints. > > I think that the biggest problem will be that this will grow struct > inode on 32-bit arches by at least 4 bytes. That may have cacheline > alignment and slab sizing implications. We're actively talking about > deprecating 32-bit arches in the future however, so maybe we can > rationalize that away. If you already have a Claude instance open you may want ask it to please find the last ten mails about 32-bit that Linus sent and what his opinions are about worrying about it when doing such changes... :) > FWIW, I had Claude spin up a plan to do this (attached). It's not bad. > I'm tempted to tell it generate patches for this, since this is mostly > a mechanical change, but I'm curious whether anyone else might have > reasons that we shouldn't go ahead and do it. Please just do it. I didn't have time to do it myself yet.