Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp416997rdb; Sat, 27 Jan 2024 12:02:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeRd07tAi8d9yUtoYSxavOl4Pl8mOdRB62bY1MFsfOdNETaQZbvVI70gnDw4mJyRXZfnYf X-Received: by 2002:a05:6870:7f0f:b0:214:82c6:ee14 with SMTP id xa15-20020a0568707f0f00b0021482c6ee14mr2940511oab.58.1706385721254; Sat, 27 Jan 2024 12:02:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706385721; cv=pass; d=google.com; s=arc-20160816; b=sY/g658rW6eIgc1vPa+LV94uConLlgladi0beoms2/anSsWSuKcr0aj0qjgY/04Vid +7EmU2/PfEgS9rCZW8ID1FWwlse/STl7joeVo7Kv65VGJbrf4fMRTO13F2btHX47bng+ quIz4Vxu0c8N1+SkqeoQQNGNrD7iTV05hvWl9xljhNgxIVoK7+ccn/HwMMAJo8zbQqpj 2eexaviE5Yb3z3emLDlZnLK/u4ShRVgZZnijR4qZjkQ+MZ8r0geMH8+awM0McYsCOieE dfQ9/EjeIj31wv9KjGYi8kkR8u23CR32O8w+72jPRFucb/HhPJXQ625FjDx1ppmeY7uB cQOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=IqDQR2DUv5doyugas4NFosE1WpuO2lGhHoJ/mTvORLE=; fh=u5XUqVqlyK23FUWjuKGC7fIJe24Fgho1Gq9UJOy3G64=; b=CNJrLcsx0NKFAjlkxBnQ+v9tLPCwSd0VyBu2ySgvA6hqL7QSciugXD2O9S17xTaE33 uMub9hTja8U2tS44knRIwe1Hjs8XfvMaZc4/AKeFZV9lE+Y1nvpiRiu+pBMlI4kXi9Pa KTZKAaqFtTruHWE9uCmylKnHZpIC28XW+YR1j3BbdlVFNwgBENyKKBI1Sy6R0pnHRDsA k6TvVSi5n2PeiyzfFD2u/SfBJeEp3LPevPbrEgKgEv8PHyEiHr221Fbznh6kNPEv9J3h roxiYHpm/GR5PpZviFQMRc4yEoiDLw67qSlpe+IHM7ukfqPXyykuTnHHO0GW0gjbwT/G jMiQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="h/wNPzfV"; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-41385-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41385-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 o25-20020a637e59000000b005cfb2c44526si3179202pgn.862.2024.01.27.12.02.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 12:02:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41385-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; dkim=pass header.i=@linux-foundation.org header.s=google header.b="h/wNPzfV"; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-41385-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41385-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 81DE6B22F00 for ; Sat, 27 Jan 2024 20:01:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE0C92E657; Sat, 27 Jan 2024 20:01:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="h/wNPzfV" Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 373792E632 for ; Sat, 27 Jan 2024 20:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706385708; cv=none; b=QseoiBX2Mfe66OcgWnBFrfIj29MiFCptgvX2fL+exDtlmcMGMspobqkVkf7uUIgU2wIjC/hBnZTipiJDtHs6bX64D8qW2uU7RvbonR5vp9m0R+50uFiMbCYiS2OtYiHiuL+PgttUfPlKnDnnxDyxTEZzHUMbDUTl4RZlYDaIRUU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706385708; c=relaxed/simple; bh=N4yM4Sx3Bo4zjchytKwAIMFmf9vDnuWdHVbRYVkfw1E=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ApNkTanM3Khn3eiD3YU3jlypnuTlSr5GE6/G6xHP4SBKxE3VVDm0uyv5wvIH+WVXN4IvXwDiefxvmQI7+GU66VhQGpisjz8PW44hc36pN9/JR1fy0BCjq62jiAp3LIQoo8clAZY4dOV6dl3q7fgtOCn93O0EP/2OhIqzvzNeIhI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=h/wNPzfV; arc=none smtp.client-ip=209.85.208.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2d03fde0bd9so2276541fa.0 for ; Sat, 27 Jan 2024 12:01:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1706385704; x=1706990504; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IqDQR2DUv5doyugas4NFosE1WpuO2lGhHoJ/mTvORLE=; b=h/wNPzfV9Q1rRDUoWVacLyh4Xt9/kpTkRIzNlMlkiSLGRVt0vsEsUuaN6xD1FtkSls B9ib8hlnzQ1fbar84d7k99ecyQFLM1MxE4fTCDNwp/OWCzCAvVEG2/V/QjWJsfaba1Pp ykv62JFHVRl6WomEqwO3TRcIDpjio6xXv3lpw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706385704; x=1706990504; h=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=IqDQR2DUv5doyugas4NFosE1WpuO2lGhHoJ/mTvORLE=; b=WDivJQLGzrUAQ9miZ7PwqtyQtZ9PSkHyOBRKXLRGhYCMraxk5PhMtM63lU/e2V8WRi XqVh6xgYhZBSYsisTF0FFjhzhWxwNzmCqy98+A16POmK7f0gzIsiXfbx6p4E79KkPdxj xal7Mgmo0pJ6Abn1Hr003qmwz+QI3JAmTkC6a4MuV4sPSsvVuw9bbV62FpTPWu0sIEOh QdXEG65Pz/Fs5B+lRTamJLqZsfir4ERs/+RmjvpBXRkFzJI9Gz+OHNhFs+97j+WCs7k+ 5f9zE4ozxFVtVFkHGvTZ8CpHBXCSe+gapVOcn/aOmf10n8MBuOrT89fl6uNqJbfRQRZH d2yg== X-Gm-Message-State: AOJu0YxaFpy/mxxrcKipA4Kum7y6Oez+/7dKTUKLgRcKKNLwEBMXBzmX Grpb+nefW/bnu92k3OZt6PrYFDg5YhNonEW9bs7mFs3fL7p8Axnl97/+BmnUCb23+fu/xdUBxhN g7Nmzng== X-Received: by 2002:a05:651c:200b:b0:2cf:41d2:ff57 with SMTP id s11-20020a05651c200b00b002cf41d2ff57mr1773721ljo.10.1706385703735; Sat, 27 Jan 2024 12:01:43 -0800 (PST) Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com. [209.85.208.47]) by smtp.gmail.com with ESMTPSA id d23-20020a056402079700b00559c71e70e3sm1930970edy.79.2024.01.27.12.01.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Jan 2024 12:01:43 -0800 (PST) Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-55a90b2b554so1653649a12.1 for ; Sat, 27 Jan 2024 12:01:43 -0800 (PST) X-Received: by 2002:a05:6402:3137:b0:55e:b30c:e0db with SMTP id dd23-20020a056402313700b0055eb30ce0dbmr1269613edb.35.1706385702705; Sat, 27 Jan 2024 12:01:42 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240126150209.367ff402@gandalf.local.home> <20240126162626.31d90da9@gandalf.local.home> <9b34c04465ff46dba90c81b4240fbbd1@AcuMS.aculab.com> In-Reply-To: <9b34c04465ff46dba90c81b4240fbbd1@AcuMS.aculab.com> From: Linus Torvalds Date: Sat, 27 Jan 2024 12:01:26 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] eventfs: Have inodes have unique inode numbers To: David Laight Cc: Steven Rostedt , LKML , Linux Trace Devel , Masami Hiramatsu , Mathieu Desnoyers , Christian Brauner , Ajay Kaher , Geert Uytterhoeven , linux-fsdevel Content-Type: text/plain; charset="UTF-8" On Sat, 27 Jan 2024 at 07:27, David Laight wrote: > > Doesn't Linux support 64bit inode numbers? > They solve the wrap problem... Yes, but we've historically had issues with actually exposing them. The legacy stat() code has things like this: tmp.st_ino = stat->ino; if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) return -EOVERFLOW; so if you have really old 32-bit user space, you generally do not actually want to have 64-bit inode numbers. This is why "get_next_ino()" returns a strictly 32-bit only inode number. You don't want to error out on a 'fstat()' just because you're on a big system that has been running for a long time. Now, 'stat64' was introduced for this reason back in 2.3.34, so back in 1999. So any half-way modern 32-bit environment doesn't have that issue, and maybe it's time to just sunset all the old stat() calls. Of course, the *really* old stat has a 16-bit inode number. Search for __old_kernel_stat to still see that. That's more of a curiosity than anything else. Linus