From patchwork Tue Feb 6 11:31:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 19996 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1480732dyb; Tue, 6 Feb 2024 03:48:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IENIdzf5R23dkTLFntzXQ/5+64kaUmS7depyzYUvkInKILZ4wH76WNuzxwtTDWCK10hzWpg X-Received: by 2002:a17:906:ecac:b0:a36:8cb6:92f7 with SMTP id qh12-20020a170906ecac00b00a368cb692f7mr1380716ejb.77.1707220119915; Tue, 06 Feb 2024 03:48:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707220119; cv=pass; d=google.com; s=arc-20160816; b=RGVbVOinioeP5JqswAxPA2c2Kjm8BnvtGGyNMwy+m6OAtPsg7WMy5eea9M8PJ4w30O L/Rgki9Mti+2m2mJqe968R6Vwu7ffr/5nZepGfYSk6ScswAsQChEMYOhp4CZ6GI5CN1/ lKatYK3zBbtsPF4yuRtTV6LTsGazs5UWqaly6Vzb3GBl5OqsuUTknOI49u3aM5AOCPKL 06M8fLPBfhkmiAA2E/aBU1fTgdL596DvsT7d++JKG7vt3dW66eN6vBbITaQQPJEjGN0p qixhv23VZR+IRY0+Ah3fEMSiV/Ynkm8eua0OAIRAkVw7546cOzPZ7L+fduIxhfhCyfM6 M+yg== 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=SU4TsghxxKJ+m0XtEHLuWJWmu9E/fXWFerp7WFdwBLU=; fh=VhjfI4qBFx/QGyZlA+6NNf+VpM+8bJx7F2X5KyoykMw=; b=m2m0LR90oC6eBCt1KV63ucLXkGOb7Hkmi2qqQZrDAcRcRLfN1gdKvUyUSd98txwkBQ EbQ/zqRFrTc0yAY9ZnasOXNvI3cG408Z4/bhEDgwbSgu4bgkj6w5MpIckjbC9KJ8PDkv Y1kM4c6aG26TLC5Odse3zaDTVpbeozgf/Rr5oo2AJnmZ3kd4Sn1vetW4LoinR4iXVAS7 Oplld5ygyZvR8tec8BqCs5uBZzbEqJssZTnFnH+W0PfRdpq633p31joFxYBRJ//NIZIA aKjNFcQEChjfA1v+8AWAQYtJcPAzERNF2vImrOejRVV3n7/Z1wXpC3CpOch3fxhuzfBd e22Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-54794-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54794-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWKmBLzxd6p47wkwnwRzYmTR9dNvvqN0xXTMeR9ZYmFFlF5F30Y06EmFZyyZdsIefIaZ7JgEgZCHOD/f5SQNq4I8WRHpQ== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i18-20020a1709063c5200b00a372761f7ccsi981761ejg.760.2024.02.06.03.48.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 03:48:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54794-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-54794-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54794-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 623811F24B86 for ; Tue, 6 Feb 2024 11:48:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B74713667E; Tue, 6 Feb 2024 11:33:36 +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 6BFA2133996; Tue, 6 Feb 2024 11:33:31 +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=1707219211; cv=none; b=XxSnr0bpili+3m3l2kYGdd/SBb5v06Q1/5JcFNyj/EGHk/6/U4XTkqkLINLoD+7Qhul4A4nluRugVbe9WYHQbBybbzXtzQVmfmnbLRCQ4WZdm0s2ViHLYQgZH4laPxJO+TUViYJXoYJ6UM8XT8mJFU/idmnHDXjM62NUPpDFIHM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707219211; c=relaxed/simple; bh=YUUc7FFaa9HA/Wrq9PqkW6ZnyUXTUbapztqNh4bOejI=; h=Message-ID:Date:From:To:Cc:Subject; b=mAGs714cPzI7rFtDmRGajJ7gEuRkb0YCPXnRzMO1kFBwG0+CERhYAIfz11LlEf752stk98h1tn8rtIAgUsbm4MZyvSXh12DySgLW5di0Mx3QTmrdRfCInXeMIywWI/LfdgDZeGToFJnbTZ0Ig++RqCNfbvDooyduIedqOIN8HMc= 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 49120C32788; Tue, 6 Feb 2024 11:33:30 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1rXJiA-00000006aGP-0r6z; Tue, 06 Feb 2024 06:33:58 -0500 Message-ID: <20240206113158.822006147@rostedt.homelinux.com> User-Agent: quilt/0.67 Date: Tue, 06 Feb 2024 06:31:58 -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 Subject: [v6.7][PATCH v2 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: 1790150044239118109 X-GMAIL-MSGID: 1790150044239118109 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. This was created with the following command against v6.7.3: git log --reverse --no-merges --pretty=oneline v6.7..origin/master fs/tracefs/ | cut -d' ' -f1 | while read a; do if ! git cherry-pick -x $a; then break; fi ; done Which adds -x to the cherry pick to add the upstream commit SHAs. 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(-)