From patchwork Sun Feb 4 01:16:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 19892 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp147202dyb; Sat, 3 Feb 2024 17:19:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLsguICQblKLv1TGv43yH02Ez+0/SpSZwujji+FmFRqWCojVN2swJ14PUdpG8WCaBpxyT+ X-Received: by 2002:a05:6214:2526:b0:68c:689d:92ec with SMTP id gg6-20020a056214252600b0068c689d92ecmr3804072qvb.25.1707009546343; Sat, 03 Feb 2024 17:19:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707009546; cv=pass; d=google.com; s=arc-20160816; b=QmINHmUZXenveaQWf9YWbTVYPZgLlFgkJdVULs4Qy1ikI37G0f7bDZQB2QPM5sp5Zh 3f3y/gaNolqQz/SCyCVUA/s6t68Ee/ZLmlTwjWOIDvRJy8Lgv1uxzzXBu5XgUJkPK/af jalSoKKViZ9swEmKuVZR4IOVD2oazAxNrxCf50YGqI5KurPyYgWCi6+z87XhzVNcZxxb n3rbwnUH1ntkVgjA78C36nC6ANLVESZskjKDukHPmvobsWNNSGd+UtaMwazRoes2es9Y t5hVlXDczgYowS7xnJJJs7NpdNGYsA+hzqP0kMhDoYl39Q0EXnYaHwp3smpg9b8/JDXo Bang== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:subject:cc:to :from:date:user-agent:message-id; bh=AFoRU2HqD7GqWv/F69v9XR8A8VO/JnDbJseQw2s44vI=; fh=96xCeaAXMDX3yKExStWpFoZbbGWyWDGD72c4hkokUFQ=; b=L23Pzp/qMf+RMUsC3gpRhhz+8A7pj3M9aHtTKx2DWPsNe1xRH3g2ACbvW9m8OUPaw4 4qPDOBwo8XRtlU6faZOswafm4BYPPY94bzY/Dbwc3fBz6hmH/84x8ppuxegnSf4ZEFsu yiVs+iumN5ajlRMWBmNypxSvWhcK4udBbrHhHKawkgRy79SUV4DJBzthAqBKHsLDRoX9 aRdNWWU6VK78Lm/CENBb/JtYKusXxZqkzxAehXJj6V7Rb64A9qOq1p+Q7z2LwPOVaULq NphZMuLECI3pY9U/5SAFe556qt09nh+6jar6FVUt8pQ1J13x4M8q95/K4IpTqVIbXukB 6wrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-51337-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51337-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCW5LGmV3qdTHJJdstnQJ5VyGUzdvW/FW+N9IcB/zTa1vRwl5f9nRw6IekqCJqWHBBpNHFKaggUp/yfpCNIi0T2NL0V4hA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z8-20020a0cfec8000000b00681b44eed98si5300092qvs.136.2024.02.03.17.19.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 17:19:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51337-ouuuleilei=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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-51337-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51337-ouuuleilei=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 24BDB1C22826 for ; Sun, 4 Feb 2024 01:19:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D26B18F5F; Sun, 4 Feb 2024 01:18:06 +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 11574EDC; Sun, 4 Feb 2024 01:18:04 +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=1707009485; cv=none; b=NkRkt+qp3P09AQziykOwHkM4Dl7yM+BP72yB9LvQsyARvrWux0OB+Jltq2FY34AsvAJiaWssEQ6mY93O7Yd692aJfxUOOOoeLA0ZNZQEGG1fLSWpP/qODwPUb/8DjvavRCZSpq7/c6ARMM40O1bJ1pydfvpx6K2N59XlJgLc+Qg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707009485; c=relaxed/simple; bh=UIUs6LlmDxawNhDuxl933sxIjJLLNea2CmPMN12Js7M=; h=Message-ID:Date:From:To:Cc:Subject; b=leaNx/jRj0dvIAaIYhH4V/HeJDrvlgjoRP0DgWn5GQLJVHt+HtqsMyRqlIGGC3EXriOfZ4Yw8+Zi003my7pYB10DbTZT3JF8+5clwOf+wyBbX6oCzlkeD0CgcYnRUFswDw1MDhpo7i4b5YwN3J0ew9qbAOYkW5esJcRJcqCsnQU= 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 93041C433C7; Sun, 4 Feb 2024 01:18:04 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1rWR9P-00000006OkL-07kK; Sat, 03 Feb 2024 20:18:27 -0500 Message-ID: <20240204011615.703023949@goodmis.org> User-Agent: quilt/0.67 Date: Sat, 03 Feb 2024 20:16:15 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Linus Torvalds , Greg Kroah-Hartman , Sasha Levin , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton Subject: [v6.7][PATCH 00/23] eventfs: Linus's updates for 6.7 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789929242412440725 X-GMAIL-MSGID: 1789929242412440725 This is a backport of all the work that lead up to the work that Linus made on eventfs. I trust Linus's version more so than the versions in 6.6 and 6.7. There may be plenty of hidden issues due to the design. This is the update for 6.7. It includes Linus's updates as well as all the patches leading up to them. I ran these through my full test suite that I use before sending anyting to Linus, althouh I did not run my "bisect" test that walks through the patches. The tests were just run on the end result. I'm currently running my 6.6 version through my tests. Erick Archer (1): eventfs: Use kcalloc() instead of kzalloc() Linus Torvalds (7): tracefs: remove stale 'update_gid' code eventfs: Initialize the tracefs inode properly tracefs: Avoid using the ei->dentry pointer unnecessarily tracefs: dentry lookup crapectomy eventfs: Remove unused d_parent pointer field eventfs: Clean up dentry ops and add revalidate function eventfs: Get rid of dentry pointers without refcounts Steven Rostedt (Google) (15): 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 eventfs: Have the inodes all for files and directories all be the same eventfs: Do not create dentries nor inodes in iterate_shared eventfs: Save directory inodes in the eventfs_inode structure tracefs: Zero out the tracefs_inode when allocating it eventfs: Warn if an eventfs_inode is freed without is_freed being set eventfs: Restructure eventfs_inode structure to be more condensed eventfs: Remove fsnotify*() functions from lookup() eventfs: Keep all directory links at 1 ---- fs/tracefs/event_inode.c | 905 ++++++++++++++++------------------------------- fs/tracefs/inode.c | 286 +++++++-------- fs/tracefs/internal.h | 48 ++- 3 files changed, 451 insertions(+), 788 deletions(-)