Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp919961rdb; Fri, 26 Jan 2024 15:35:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTLUWT2EEHV8w6evAydgj9SiX50IJfOQEB89RtiVQJkIexCDS3oxyxkcJQS63BLWITVvFW X-Received: by 2002:a05:6358:938c:b0:176:5b4f:492b with SMTP id h12-20020a056358938c00b001765b4f492bmr645122rwb.12.1706312145866; Fri, 26 Jan 2024 15:35:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706312145; cv=pass; d=google.com; s=arc-20160816; b=On1tvXaLIh3149YR1H2ROXKkU0m8gLjVi2+waagUS4A68tkULZZhl5HvEluk76ySTE XdVNGj7BDXBOq0HC+TMUx5Gc6TypLTDNdnIDW+2zyzotRy3e4UAb46cJXkQ6gXFcwxz6 UKu6CSkpHB6SLfxJ8+zOXtqDx1Er/3ySoKaLgFi7gnM0N0sLb5HXuxrnyn3ZD4MyOpMW W5zWruA61np2cb41e+UYLPj/8NfHXfF4Xc+EXwew1KZwcr68o7499ZrECBAdJ3BkohT/ 8wFbrLgcS5yS46DlCMdBrgxnrDAJ2oLBa1t8yfnKM72hX89nEj7xYaKkTiBnrZlva+0K 9lXQ== 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=VC+HuLvY2p6RWyDAc32xlp18wOorWJVU3mokVs6SBvk=; fh=BUWDLBPTUg+oym7buuPfMDkLp4pmTXXUM6wRhLxUGhE=; b=EsBgbE1yuc/fcnCm3k9ax6p0SoCawst1DvjBaewOvyxd84T65HIVtzB4wpqvgPasqb 3e53zshqw1uyeRRZ6BHpflSoh0UQ6ew1PAq72WFBNyYDBLmM9imp4wGJH8yX3J7jGbLW xORu7q6Y++fP5pIZeMTQG6yAT1exkqqLQ1aOak79v31lLEt7Pp2/kzuoKW0yVQAn5WzQ lHfmxwU4HgUIlXp1wrIladuYS3YqjduU8vfYi9eK7/OPswxRegDSh3ECgstzI6ATuesF evP2IIcpgW+MI06ac8b0b4tN8svy91nPmCEEkjkfidjelW0uNjD7re/ibLgf+lK4c/sO OXFQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Mg8KCWC7; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-40837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40837-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u17-20020a17090341d100b001d76c4657fesi1854075ple.590.2024.01.26.15.35.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 15:35:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Mg8KCWC7; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-40837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40837-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AC052290340 for ; Fri, 26 Jan 2024 23:23:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C79C57328; Fri, 26 Jan 2024 23:17:37 +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="Mg8KCWC7" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 4EF3E55E66 for ; Fri, 26 Jan 2024 23:17:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706311056; cv=none; b=IKWAjPVKUGtKtO5+vQwgXMWDy8XUekYPHOFcJD2EIBSOaEPc+Qs6Wk4NCJx6oM0gJ0j+g9YCkkhvdw5UaSnfUzDD1lxwah4w8PrPCsINCzifc6i8EzaSrvZZbxl9qQIBVUyRCKtuMMOX2OsY3NeeeB5havNASjAO6iVvVG79X4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706311056; c=relaxed/simple; bh=QmVspYtlmSmjhcCoSiCpOR9/r0lxSB1GXdq7WVzBRp8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PSnaoL5Yo4UEKr+vhMIE4PNFW0v1C6lhHeJGSnTCUt0YkpdSIZ/ksfixWQXwrMA/ZbEmIK/usIoDf5s5uGuqOlIabHh4kgrBbuKuPGFKdFDhVcU9zuqWUWlA6SIV53L9pfVV118zY56rx03Sn8rRpP5FYpEWBbLpqa9iSy3zwJ4= 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=Mg8KCWC7; arc=none smtp.client-ip=209.85.167.49 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-lf1-f49.google.com with SMTP id 2adb3069b0e04-51028acdcf0so1045365e87.0 for ; Fri, 26 Jan 2024 15:17:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1706311052; x=1706915852; 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=VC+HuLvY2p6RWyDAc32xlp18wOorWJVU3mokVs6SBvk=; b=Mg8KCWC7ftFgTMxx63cRE+MeYtyaEvDFAaR6eOLYpTKbjBePAgmi8GTy/aUmLcBQFL Frzdy4Z3j+8IMyf6XEB4LLR9QaZSgi0P7LTOFhYA+tI01y/opJYak8ykUQxidXlx2ke1 p97RAG3+tmE8KreC/b2qzOfN1qMzdaVWV3o/w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706311052; x=1706915852; 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=VC+HuLvY2p6RWyDAc32xlp18wOorWJVU3mokVs6SBvk=; b=PCefLW/ZRxn6CUBqMH+kOjAEEjhIsKcBM8EMoydD8wuXdXaiBjO+Y6wm1x4JIE9NuC ZpmWca13rUX8/RbPQqzznyb7+oz2lrQAkbgN8ldeqdFLPF93/xw8eQTRJ4LpSmyN1QBy LtlNx0SItrn+skQIOfGgrb261C+cCn6fPJtBz1o2wUc8YJsOA9dWfuq5nT1ISECDgYuT 9GnLXEU150sK7Et5Ues7m8CpcVh4uZYvg1r8dGCJseUoX+8yj53CTdkqK4XQSS+7aD+U ecF6472rVdR68v/2qz36syJBVKHyybRVJAcR3Srk5paP1fpYPGnIKCnNJSmaB2OdcGgJ trDg== X-Gm-Message-State: AOJu0YyLlOjVy4h68o4kQTnOLZFR5tvIJekYYuKRRRxyNEU3Z2PZQkZN zjEAEkxuQ4iEtodX1hkChuN49lhqU6+hYTviCrsl/9xEwNfy0nZZIhbWcmA8zfwoGIK/yaNmE3a 8Dahm4w== X-Received: by 2002:a05:6512:12d1:b0:510:f47:8d82 with SMTP id p17-20020a05651212d100b005100f478d82mr288109lfg.22.1706311052131; Fri, 26 Jan 2024 15:17:32 -0800 (PST) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id z5-20020a056512370500b005101e4600cfsm318576lfr.252.2024.01.26.15.17.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Jan 2024 15:17:31 -0800 (PST) Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2cf3a0b2355so13176121fa.0 for ; Fri, 26 Jan 2024 15:17:30 -0800 (PST) X-Received: by 2002:a2e:7c19:0:b0:2cf:4a53:90f with SMTP id x25-20020a2e7c19000000b002cf4a53090fmr374339ljc.7.1706311050498; Fri, 26 Jan 2024 15:17:30 -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> <8547159a-0b28-4d75-af02-47fc450785fa@efficios.com> In-Reply-To: From: Linus Torvalds Date: Fri, 26 Jan 2024 15:17:14 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] eventfs: Have inodes have unique inode numbers To: Matthew Wilcox Cc: Mathieu Desnoyers , Steven Rostedt , LKML , Linux Trace Devel , Masami Hiramatsu , Christian Brauner , Ajay Kaher , Geert Uytterhoeven , linux-fsdevel Content-Type: text/plain; charset="UTF-8" On Fri, 26 Jan 2024 at 15:11, Linus Torvalds wrote: > > On Fri, 26 Jan 2024 at 15:04, Matthew Wilcox wrote: > > > > Maybe we should take advantage of that historical oddity. All files > > in eventfs have inode number 0, problem solved. > > That might not be a horrible idea. Note the "might". I don't know why glibc would have special-cased st_ino of 0, but I suspect it's some internal oddity in the readdir() implementation. So considering that we do have that commit 2adc376c5519, I suspect it would just be more pain than its worth to try to teach user space about the whole "no inode number" thing. It might be safer to pick something like -1 instead. Linus