Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1334301rdb; Sun, 7 Jan 2024 15:09:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGtvmucKLs+Hy4I7yQ3vAA8APIjAinBjYLb8Zieu2Yy4QkeSqomfJ1DkYpfePm1PSuGiWU1 X-Received: by 2002:ad4:5d4c:0:b0:67f:2e67:c48e with SMTP id jk12-20020ad45d4c000000b0067f2e67c48emr3857171qvb.76.1704668979879; Sun, 07 Jan 2024 15:09:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704668979; cv=none; d=google.com; s=arc-20160816; b=xDf18keAZMjNfUKssEVDk6Aif6DBg2eQchPHUGozGnBwcPDR7NskUuOl0ABFP8HuN+ 4FYrc1O7nQAuYlFd0VNgtuyU67g5lJZsJ1MTDS4Pcz3FTUmJZpfyeUBd5dZZz18RheGv hzBeHmPMg1BItnoxxxrxEcvVgcS1yjYvkZEYSpMiTlL6MvLEX6h/XTFQASyqhiUXW/yZ Hl3LtHn4DXs4wvsT7b6quwmsaKu50yMamTlh3EXoHv/jyye57+RzUpGN5IjOIArIDv80 Vgr/ofwv7MRmxtIfZqWtIHAGsHx9N7PET4l3P5pDdfoQvsvK4pf/NkxblPGBcqJtSg6Y +NmQ== ARC-Message-Signature: i=1; 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:message-id:subject:cc:to:from :date; bh=WBJPS/zWhLpxZP3RArhS8bHwSVD1be3eWJzCTQTI4Tk=; fh=r0JydvZ4NAKTHIsC7HqLV17mLl4yzAaXth3YiCRW64s=; b=HtIBQJ6mzEsPla0ROWm4XQS40F428RqHeV87Aty3b1GijJ5tLw4VvkmhxCH5qBEh4b l64lUrNe1L0VoMQJAb16qECXjW5Av7jCjZV5v4k98vyDGQNGbw8aFO4y4s6co/ZadT1Q ZpxsTWHeyRsUcpTdF85CYj0LbS05o2YzNOdXDI4MBWqJ7MvKOn58ser9VJiAOrw27MAW 2NfVKRPI/9JDpSAUGOmmIPXb3/4XRWrg4G7v0mXZSaP53nvs874V1iWHPkow7o1xO68e y+i+Bqv+sv7nJyAVN3hE3r1h94WY0dPX9/hOto3M6W+nNQDRGBWpL3XcbRwRdr1nyUI1 2kbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-19014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19014-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y9-20020a05620a25c900b007811da98aa3si6949853qko.661.2024.01.07.15.09.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 15:09:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-19014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19014-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9FC291C214BD for ; Sun, 7 Jan 2024 23:09:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA584134BD; Sun, 7 Jan 2024 23:09:27 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 36906125A8; Sun, 7 Jan 2024 23:09:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1270C433C7; Sun, 7 Jan 2024 23:09:25 +0000 (UTC) Date: Sun, 7 Jan 2024 18:09:24 -0500 From: Steven Rostedt To: Linus Torvalds Cc: LKML , Masami Hiramatsu , Mathieu Desnoyers , Al Viro , Christian Brauner , linux-fsdevel@vger.kernel.org Subject: [GIT PULL] eventfs: Updates for v6.8 Message-ID: <20240107180924.38e25155@rorschach.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 Linus, This is only for tracefs/eventfs. It does not contain any of the tracing subsystem updates. It may also conflict with vfs subsystem as they had a change in the dentry walk, but that code that conflicts is deleted by this pull request. eventfs updates for v6.8: Note, this has no new features but only restructures the eventfs and tracefs code to simplify it and depend less on how dentry works. - Remove "lookup" parameter of create_dir_dentry() and create_file_dentry(). These functions were called by lookup and the readdir logic, where readdir needed it to up the ref count of the dentry but the lookup did not. A "lookup" parameter was passed in to tell it what to do, but this complicated the code. It is better to just always up the ref count and require the caller to decrement it, even for lookup. - Modify the .iterate_shared callback to not use the dcache_readdir() logic and just handle what gets displayed by that one function. This removes the need for eventfs to hijack the file->private_data from the dcache_readdir() "cursor" pointer, and makes the code a bit more sane. - Use the root and instance inodes for default ownership. Instead of walking the dentry tree and updating each dentry gid, use the getattr(), setattr() and permission() callbacks to set the ownership and permissions using the root or instance as the default. - Some other optimizations with the eventfs iterate_shared logic. Please pull the latest eventfs-v6.8 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git eventfs-v6.8 Tag SHA1: b24ec2b23e8b77b46510e215ea34887bfb550453 Head SHA1: 1de94b52d5e8d8b32f0252f14fad1f1edc2e71f1 Steven Rostedt (Google) (7): eventfs: Remove "lookup" parameter from create_dir/file_dentry() eventfs: Stop using dcache_readdir() for getdents() tracefs/eventfs: Use root and instance inodes as default ownership eventfs: Have eventfs_iterate() stop immediately if ei->is_freed is set eventfs: Do ctx->pos update for all iterations in eventfs_iterate() eventfs: Read ei->entries before ei->children in eventfs_iterate() eventfs: Shortcut eventfs_iterate() by skipping entries already read ---- fs/tracefs/event_inode.c | 341 +++++++++++++++++++++++------------------------ fs/tracefs/inode.c | 198 +++++++++++++++------------ fs/tracefs/internal.h | 3 + 3 files changed, 283 insertions(+), 259 deletions(-) ---------------------------