Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp899789rdb; Fri, 26 Jan 2024 14:42:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGAQqYbUUrOCEf801F5z336eNPxJjgt6AMZFoj0welr0cypx3O/bkZTCKE5feCHufpuz9oG X-Received: by 2002:ae9:e711:0:b0:783:85fc:e17d with SMTP id m17-20020ae9e711000000b0078385fce17dmr510385qka.52.1706308963110; Fri, 26 Jan 2024 14:42:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706308963; cv=pass; d=google.com; s=arc-20160816; b=k/zbJ5t9KUsrpTFWl3Ve2Z6gkMkodvuFlip1zz0Gj3zro72shxDWAs2Gh85rkDmVAg pM7R3Yejw4gDajYooSj7QvyTcR+bGNCO11FfMmY3gaczps9YLNIUGCGfWFQzv0/oGJ+t 8usTRiyLjdsZ38zELnIBSZa7XH8wgWZeO2wHvoVpbMKpup+zgqv+taZ1Meq3k8tUxhZk 2gHV94Mn0a5HtyQNkSwWU2pD0nG6HsW5FkzY6u/PuQIj+wxpGMefxskUoIVbOsEfWFHD F9hRVrI5zX8tTUhu0ZRtqeiJlSTHAQWiQPBsykr+5wKsxuNn5aBEK65p3EhUvq+wubuM zD0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=3+a76shwlc4N82y/zdqgMPZdqIfhuDBVhTSKLzB2Xew=; fh=H7QU0HtkjXARY+fCXZaTN+1wDhub9evcD38O5DMm7f0=; b=JyJ/y6dN6Bg8gcgD5gjFQIox4LaU4rzm4452Hxymuyhm01eSTjsQohKcmwjAOYmQkM mzpU7Vw2EP7FE3bm1jKzUql9VpI9Is6PDmTXY/TfME0Fyb2J+XsoHTE1RlSQ2zEggOLP FBuSKM6QOCKOWbtr7dc53t/234J6gMKoTbtbQyhZOX5X3ngIsO3N6FLj7vR95oc0k1OH AdtNalLOvz8DGS7Q8a+1l01miNRgGxlTwMa99pKL1sC96u8FzMI+5AlDPNIzoJlnhcSw 2B7CAqsJk1lC5+FrJAdI6H4a0YPQwfT0FEhkhDAtxJGhNfz7NMdqn7enQUDsyMmgkHxP laBg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=xlZeaFQt; arc=pass (i=1 spf=pass spfdomain=efficios.com dkim=pass dkdomain=efficios.com dmarc=pass fromdomain=efficios.com); spf=pass (google.com: domain of linux-kernel+bounces-40794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k23-20020ae9f117000000b007839190f0c4si2198752qkg.209.2024.01.26.14.42.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 14:42:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=xlZeaFQt; arc=pass (i=1 spf=pass spfdomain=efficios.com dkim=pass dkdomain=efficios.com dmarc=pass fromdomain=efficios.com); spf=pass (google.com: domain of linux-kernel+bounces-40794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D07271C211C8 for ; Fri, 26 Jan 2024 22:42:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFE6C45968; Fri, 26 Jan 2024 22:40:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="xlZeaFQt" Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) (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 69895481B9; Fri, 26 Jan 2024 22:40:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=167.114.26.122 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706308829; cv=none; b=LZFbbmE4f/mOCw2ZjRsWqESFckrmMZnD99mrFSknEqnS3ZW9ZOY1oovMOT3QksdiWYorOsMp9mGgSlHbBzd5cgxjM75rLT8JnWQA5O78T6VVEeVULvQBrkkaMzm8EKdcexDL32nA//n/bgI8r/0v2CxC6tN7QeNefCSOQpAh7RQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706308829; c=relaxed/simple; bh=KdgVTF1I7piz/UIVWYQxc4e2/s4Zy2p5ecUufv75WuE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Qzh/YMsrJWiTZrVedRwSq7kSrlI2dl01YwdC872VPBdz5fCMChqZakVfu01m+r88UFF2UR/47w/hbMDCaG+uiKsKWQPZE5zT2ZOui1n4NwXyEGW1JKXKjYFnEvnCREoWpSllYsAj27J/A75EITTBmp9uKQoH2FnBvI54ePhTftE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com; spf=pass smtp.mailfrom=efficios.com; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b=xlZeaFQt; arc=none smtp.client-ip=167.114.26.122 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=efficios.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1706308824; bh=KdgVTF1I7piz/UIVWYQxc4e2/s4Zy2p5ecUufv75WuE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=xlZeaFQtPMRbcxFa+swDpAsChLuZeopnEtnueNQfh63SbH+H8v7qDtaa23mV+SMjr oa4HfgGiyldqhe4KvYlLbtri+Vlz7cixeQkqxIrSLQlCIx9lTxZyW3RHINAR2XB9Yg art8DoBQkKbO3scIpBMgoMEjgHXXtzKtUdt7GX0jH8M7G9IIsz2dXAm3JH1XLvj9cI LSVv/6mH4ccGkuYZ1gIw4Xj7ChrAGCTtPl5HindBGjtwktZ+FpjIM7lHn19NMTGNe4 695qYSYKp9M7CGEvTI9x4YcdOFf3XGlmaqNKf9SfMVkZsnx5PqSKAMsEaQjuQQdQDb hy+NfsGZqWLlA== Received: from [172.16.0.134] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4TMCMD52przVQ5; Fri, 26 Jan 2024 17:40:24 -0500 (EST) Message-ID: <1df2a2f8-f51d-4e02-9126-3e8245750466@efficios.com> Date: Fri, 26 Jan 2024 17:40:24 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] eventfs: Have inodes have unique inode numbers Content-Language: en-US To: Matthew Wilcox Cc: Linus Torvalds , Steven Rostedt , LKML , Linux Trace Devel , Masami Hiramatsu , Christian Brauner , Ajay Kaher , Geert Uytterhoeven , linux-fsdevel References: <20240126150209.367ff402@gandalf.local.home> <20240126162626.31d90da9@gandalf.local.home> <8547159a-0b28-4d75-af02-47fc450785fa@efficios.com> From: Mathieu Desnoyers In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-01-26 17:34, Matthew Wilcox wrote: > On Fri, Jan 26, 2024 at 05:14:12PM -0500, Mathieu Desnoyers wrote: >> I would suggest this straightforward solution to this: >> >> a) define a EVENTFS_MAX_INODES (e.g. 4096 * 8), >> >> b) keep track of inode allocation in a bitmap (within a single page), >> >> c) disallow allocating more than "EVENTFS_MAX_INODES" in eventfs. > > ... reinventing the IDA? Looking at include/linux/idr.h now that you mention it, yes, you are absolutely right! Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com