Message ID | 20240202023023.834732790@goodmis.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-49105-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp165447dyc; Thu, 1 Feb 2024 18:32:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFREVvusoRq5Xo5HOisFef3A7yU4YKz9rG5QZlj+7V3Pk0K29RVbiSf6kzSVVkT3n72d13j X-Received: by 2002:ac5:c0c3:0:b0:4c0:d4a:33a with SMTP id b3-20020ac5c0c3000000b004c00d4a033amr461473vkk.9.1706841159235; Thu, 01 Feb 2024 18:32:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706841159; cv=pass; d=google.com; s=arc-20160816; b=Nh9Gm/TuGxKy9DRrxJo8w7f5beLTW5rFzMpnL/Ed6P4OM9eBYXLXvSWWUsmzhvqIsO 7nf/eAUYblZ/VmRVVkDBVoHx5AE7aZq4zL6BLiqXP569+VpjKBagZgEhi+HvVAmkMpv4 i+8MqF6jz2iHbAj+swFhPZKEmd1K2ozv1dtMHX7oZs6uNUl+ih9QoOJRB7aev/Cygvb4 Malkdkaz0FrOeRUCm6zfq334su2+qvpAizAyWBaQ2yG/tJ4smyR9frqQRYW9rs6q7e2H QAqGIdqSp5ZGilm0geg8NPVgbIHVrA7H3J4lZmkoFUYXhV4iynUPRLztIWds1VKeU1bK Kzhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:subject:cc:to:from:date:user-agent:message-id; bh=GdTlwYEOaQ93M+seSEUVljEDzKoBPS0AJLTWFZWlso4=; fh=C9iCRcWmW9oCmT4LWAk7N9FJ418dLbotyx5fieYfaVg=; b=zbJg5rxge8IyP2UVyl0HaqANgyxE+K06ISwh98eDdYEqpLnYG0dzTgV1IL3hDStbc9 sxdzhat+i2cuDSwsF/TGsCsYN+vsASA7lSNurllm6bWUftZvy0yweZSI6E58Jih0jo3U 5t0PYvLQGEFwSTMjyZN1+Wgf2A9lGnvTag84UptWbQF1f2snDZ8/HEnH4qYoiEQ4HRbs DxKFjzzB4W++ydce4oi2Z+8CXuYIsrUnTNF8zBWtLh4cyqOAzL9TuPnfQmdD7QZashLO UK3dzlFNtBvSNHn8nZG/KqxbbrMkLSH/SvHz/iXMV0DOBMr5OtvZAOzzRXaOJusF2Zuz yIbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-49105-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49105-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXHoHZpQ/sD+FQ7AMfJQthassZvVfFGcgwNrzwZn200ucf2CLKIKsPJ/9wvPwyHUiSL0Uc5l0L1xjHcfAZMf4xL7nTa5A== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ew8-20020a0562140aa800b0068c8243e6a6si1005058qvb.4.2024.02.01.18.32.39 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 18:32:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49105-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-49105-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49105-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 0A6E11C2255C for <ouuuleilei@gmail.com>; Fri, 2 Feb 2024 02:32:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5324B179B8; Fri, 2 Feb 2024 02:30:09 +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 6C454FC03; Fri, 2 Feb 2024 02:30:06 +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=1706841006; cv=none; b=apPK8tNkUTFn+ICTl4gXOkjFXfJNDPBA17RsFX30gMUrk/5jKaMQFZ+Nw4Tz99cWUKTHUFB80MyGkNeokNkFQ2COnGk8tNe6NAfq+Ob2Xyxm4T2VyT/RQ++TAOx2uOCjclRhk49p5GZ/VYQbTpf0GP+IE2jFjnAcj2tFHFZQhu4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706841006; c=relaxed/simple; bh=c2ljJPiZws6OX2OlljjxZ50rg8MQ1U9fnX0GsF88OI4=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=Lt1aCBWheqeqzt3jbeEgLJS+OrkpfEGhiIEWzinPgR4w3Mbz36QIYeIR7y2ZnJ2DZLJ9VkRmxQqL8Iv9vsOwveYa6PAAnLyNTCd3fbUzBa6wnaIeFrqxgRK31go6MSpsiiytNvmSjQvGvPBVSLUZASWvGgavxJFgLasMutP7BFc= 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 DAC6CC43142; Fri, 2 Feb 2024 02:30:05 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from <rostedt@goodmis.org>) id 1rVjJv-00000005kBZ-45i4; Thu, 01 Feb 2024 21:30:23 -0500 Message-ID: <20240202023023.834732790@goodmis.org> User-Agent: quilt/0.67 Date: Thu, 01 Feb 2024 21:30:11 -0500 From: Steven Rostedt <rostedt@goodmis.org> To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu <mhiramat@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, Andrew Morton <akpm@linux-foundation.org>, stable@vger.kernel.org, Linus Torvalds <torvalds@linux-foundation.org>, Christian Brauner <brauner@kernel.org>, Al Viro <viro@ZenIV.linux.org.uk>, Ajay Kaher <ajay.kaher@broadcom.com>, Al Viro <viro@zeniv.linux.org.uk> Subject: [for-linus][PATCH 12/13] eventfs: Remove fsnotify*() functions from lookup() References: <20240202022959.515961549@goodmis.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789752675471027788 X-GMAIL-MSGID: 1789752675471027788 |
Series |
tracing/eventfs: Updates for v6.8
|
|
Commit Message
Steven Rostedt
Feb. 2, 2024, 2:30 a.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org> The dentries and inodes are created when referenced in the lookup code. There's no reason to call fsnotify_*() functions when they are created by a reference. It doesn't make any sense. Link: https://lore.kernel.org/linux-trace-kernel/20240201002719.GS2087318@ZenIV/ Link: https://lore.kernel.org/linux-trace-kernel/20240201161617.166973329@goodmis.org Cc: stable@vger.kernel.org Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Christian Brauner <brauner@kernel.org> Cc: Al Viro <viro@ZenIV.linux.org.uk> Cc: Ajay Kaher <ajay.kaher@broadcom.com> Fixes: a376007917776 ("eventfs: Implement functions to create files and dirs when accessed"); Suggested-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org> --- fs/tracefs/event_inode.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/fs/tracefs/event_inode.c b/fs/tracefs/event_inode.c index ca7daee7c811..9e031e5a2713 100644 --- a/fs/tracefs/event_inode.c +++ b/fs/tracefs/event_inode.c @@ -366,7 +366,6 @@ static struct dentry *lookup_file(struct eventfs_inode *parent_ei, dentry->d_fsdata = get_ei(parent_ei); d_add(dentry, inode); - fsnotify_create(dentry->d_parent->d_inode, dentry); return NULL; }; @@ -408,7 +407,6 @@ static struct dentry *lookup_dir_entry(struct dentry *dentry, inc_nlink(inode); d_add(dentry, inode); inc_nlink(dentry->d_parent->d_inode); - fsnotify_mkdir(dentry->d_parent->d_inode, dentry); return NULL; }