Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp876675rdb; Fri, 26 Jan 2024 13:42:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXHxvdIv+ypIR7RNmbDgYWugoQ4c6sR0mk7f+G2m0fKMN9+ypGGY/0FeDVJrbyueDudRs8 X-Received: by 2002:a17:90b:19c4:b0:290:2cf6:9780 with SMTP id nm4-20020a17090b19c400b002902cf69780mr528647pjb.22.1706305372011; Fri, 26 Jan 2024 13:42:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706305372; cv=pass; d=google.com; s=arc-20160816; b=OSFMtLcmSjNzL4GG5vP4vuKxBs3eFHkKxJB82btNFKxSQj0qZnAMhWIN+Vfu0oHACS ylIobVRB6iPIRpOo/yhptohLYoyzDEqFKDjNrAviMMpQKSrrMrsFgzdH9qyL0rE4cPbS oplX3xndFzIaco9YsFfhqvGTtrJQOBwWLnW1sSKekv+Vfv3B03oCyVdGp/ThIKAvYEUz ttLM//u4Wd07Tb5al7D5O6t88wjUawCSrodiOxpnY+zrp+DIa3jioyU+9ejzVE6dOTSo XVwLOecOH58zER5jVb/T/RKRPKWv1YXupFIgE2zG2zSekV6LsOuJnblw+aQVVO6okD65 t8lQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=IonYQPYbsR9eYMl9SqXWj8zUARIEh2hkOwgTZttVV+U=; fh=WlcU4g8Jb4Aym7g9yaIirX5y5dumxg7zHygtim3aB78=; b=G2TttxIHiFiZksrBoR5Cm7BEOJKLk6HBHsZh388yaa1Rj9EJ9mZn14c4p3QUZOIUlQ e/8h7ForcN+hphNkHVG8ZK4Af85j6zDfOSUmJwYeK1khBkD7NYsi4fzdMwMDfkfQKHGe 3CxSiaseR3aMZzITjgJT+Y69JQVT6dGrTrf27vbdw/3PLzlR1PoNenxCbQik5LtZjNf6 inwvdQ3Ngp5NdbUXGRrVZF20DOpOLCabwz0h0+po/H5aoVpEq9Pf4t+F02COG1lMVfRk Kbq05dlDvSkSgha2ip7AwAl/072aQwmpa9splrdr94zDUxXG7bDYGAq4Bgn6IVqH/kfM 0UHw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-40687-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40687-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z15-20020a17090ad78f00b0028db01ed7dfsi1737344pju.42.2024.01.26.13.42.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 13:42:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40687-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-40687-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40687-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 C8B942833B2 for ; Fri, 26 Jan 2024 21:42:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 669F124B35; Fri, 26 Jan 2024 21:42:10 +0000 (UTC) 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 DC8E924A02; Fri, 26 Jan 2024 21:42:09 +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=1706305329; cv=none; b=d9CEXaXKag5CxuGiOFyEWFOtLOrTkcbo0Ds+0u4PqfDmIaONG+ghKUy4HJsLcwic6Z6NrIzwId6YlAljNmaS237H45JsgI+bkKn+KKLEYFVuYBjulKCMKloeLhTDPyDm+EvsGskdzVTcin4SgD0FsdPAr117qhXTxw41LrKFk2s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706305329; c=relaxed/simple; bh=M+qWWIk9HH5ZKtcGJLB0VA1tZ9Q0fzWbKtbJsBsOrBk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=coqye95NkaaJqbRaC0CeaOZnjBGvvW1iSal4mjXNRxWZ+N9iR8zJEUWXrpc1nCufKZZgSzqq3QUjANHbXzxNrIDxb/HLRZ0oKhNfk54LvsW/NgyX3koymCC2QEyXqkBQXpM9c/gvHR8FQkm3XRY90yzuL9O1QFxX+7AzYgSsYRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4EFBC433C7; Fri, 26 Jan 2024 21:42:07 +0000 (UTC) Date: Fri, 26 Jan 2024 16:42:06 -0500 From: Steven Rostedt To: Linus Torvalds Cc: LKML , Linux Trace Devel , Masami Hiramatsu , Mathieu Desnoyers , Christian Brauner , Ajay Kaher , Geert Uytterhoeven , linux-fsdevel Subject: Re: [PATCH] eventfs: Have inodes have unique inode numbers Message-ID: <20240126164206.637ba8bd@rorschach.local.home> In-Reply-To: References: <20240126150209.367ff402@gandalf.local.home> <20240126162626.31d90da9@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (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, 26 Jan 2024 13:36:20 -0800 Linus Torvalds wrote: > On Fri, 26 Jan 2024 at 13:26, Steven Rostedt wrote: > > > > I'd be happy to change that patch to what I originally did before deciding > > to copy get_next_ino(): > > > > unsigned int tracefs_get_next_ino(int files) > > { > > static atomic_t next_inode; > > unsigned int res; > > > > do { > > res = atomic_add_return(files + 1, &next_inode); > > > > /* Check for overflow */ > > } while (unlikely(res < files + 1)); > > > > return res - files; > > Still entirely pointless. > > If you have more than 4 billion inodes, something is really really wrong. No, but you can trivially make a loop that creates and destroys directories that will eventually overflow the count. -- Steve