From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796325539; b=aiHuu3kING3RbACOp9jI7YbAhrP1qLTbBHE0Nj67jNO+WUsrDjY241/Nb9E4qrt4NR3N rsTy2Q7DOiuOJzPfuEJpdRepyCxS6EYHYZthJnt6IH9uJ0r9dzdu72B1LiyCedtWPCm1J t+oN6OtOESQ5DFl+YSN42iEggg31eiRkvL74HuVyGmV92yTRcWMD428GI5YEmGJbqrkgM nFYwrn5FYv66rlpgRd6fWTh33brivxFgh4xVRlgWgt3Sfnz/jixu0IGpFNHwEBDoNfotN 6vLYD1eeg2drQHjZlN9bh4LDnIUHagNiyw3Uhym6jtWoQ7n3MStFFzukfJq6qrFJy2w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796325539; h=Received:DKIM-Signature:Received:Message-ID:User-Agent:Date:From:To: Cc:Subject:References:MIME-Version:Content-Type; bh=D9RudoPtt9YyYVW6bBejSMZNXwj7KdalLhKnJFQt7oI=; b=kblFtOV+F6YGqvljjp8XGVx+AvXdxjbMkPBUvmbcZhzIRKV577O04JTJF0RRhQVK1ReP VvsUb0Jdir8KAZZ2L8slEg25Ks3JTVb8Bw4yPY3mUiSCInLLiOgvnoaYBLyyKMpmk2Noi dKqmMSPkjMpslgRi+YXn7toJwKBr7BgAuZQ4FEfbYJKwXx5y2sdBYD9kQ+BCcvBGXM+2Q 1IowRGn5yiLLqq1yyts7eq5eJ3UWvL9vyXRsGDuha+gB2+oB5SnawG5k4u00qXTJtq8Qj wnYtZsMS5o6kGj1FFDyTZ5s+hLhyScdLAq1FiSYLSvNeBNxpUsHtcjUl/hknMoPvnpg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CKwXFPh7; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7260606A6A3 for ; Thu, 3 Dec 2026 19:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CKwXFPh7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF4A11F000CE; Thu, 3 Dec 2026 19:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796325538; bh=D9RudoPtt9YyYVW6bBejSMZNXwj7KdalLhKnJFQt7oI=; h=Date:From:To:Cc:Subject:References; b=CKwXFPh7CmUFeeb0RSucbQ717OJp//ugASOae0/SB62thBtdM31OJp4iL6xqK6oZS Ar6QYrYl3K3WrUb+yx5eMugZZIsnbFNuvoSly7mRyPK8weZLj4ojKwS+gmKq0PnoPG opwKC7n0ZWFZBNItluP/FtwkZ+uJ+0krX/9jQYc0yumPOVwaFrNudp40BE2iUaielH cjPnNwySa4Oi3E7c66FGmibi4lTKRdYDVoX2fUwVoRfFg0taUiq/xmaNvFJqOOvUqj eOv5doK5l3HTK0eeoX4W1YBEzEoQ4EOmkfvx1afT+0FPdp6onJdRoll1hcM2kDUvwG aRa8OhWyLSOTw== Received: from rostedt by gandalf with local (Exim 4.100.1) (envelope-from ) id 1xZCKX-0000000CJ4K-4Atw; Thu, 03 Dec 2026 14:18:57 -0500 Message-ID: <20261203191857.798917388@kernel.org> User-Agent: quilt/0.69 Date: Thu, 03 Dec 2026 14:18:38 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mathieu Desnoyers , Andrew Morton , Mark Rutland , Manuel Ebner Subject: [for-next][PATCH 1/2] eventfs: Add kernel doc to eventfs_root_lookup_ro() References: <20261203191837.131735108@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 From: Steven Rostedt When eventfs_root_lookup() was split to have a read-only version, the kerneldoc stayed with the helper function and just added the @ro parameter. But what really should have been done was add a kerneldoc to the new eventfs_root_lookup_ro() function. Also fix up the description to mention the creation of inodes and dentries. Link: https://patch.msgid.link/20261130154158.30cfa3d5@gandalf.local.home Reported-by: Manuel Ebner Link: https://lore.kernel.org/all/20261130195627.1893730-1-manuelebnerli@mailbox.org/ Signed-off-by: Steven Rostedt --- fs/tracefs/event_inode.c | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/fs/tracefs/event_inode.c b/fs/tracefs/event_inode.c index e57c962ca441..8f5e714f267e 100644 --- a/fs/tracefs/event_inode.c +++ b/fs/tracefs/event_inode.c @@ -650,17 +650,6 @@ lookup_file_dentry(struct dentry *dentry, return lookup_file(ei, dentry, mode, attr, data, fops, ro); } -/** - * eventfs_root_lookup - lookup routine to create file/dir - * @dir: in which a lookup is being done - * @dentry: file/dir dentry - * @flags: Just passed to simple_lookup() - * @ro: Denote if this is from a read-only eventfs - * - * Used to create dynamic file/dir with-in @dir, search with-in @ei - * list, if @dentry found go ahead and create the file/dir - */ - static struct dentry *__eventfs_root_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags, @@ -712,6 +701,16 @@ static struct dentry *__eventfs_root_lookup(struct inode *dir, return NULL; } +/** + * eventfs_root_lookup - lookup routine to create file/dir + * @dir: in which a lookup is being done + * @dentry: file/dir dentry + * @flags: Just passed to simple_lookup() + * + * Used to create dynamic file/dir with-in @dir, search with-in @ei + * list, if @dentry found go ahead and create the file/dir inode and + * dentries. + */ static struct dentry *eventfs_root_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) @@ -719,6 +718,19 @@ static struct dentry *eventfs_root_lookup(struct inode *dir, return __eventfs_root_lookup(dir, dentry, flags, false); } +/** + * eventfs_root_lookup_ro - lookup routine to create read only file/dir + * @dir: in which a lookup is being done + * @dentry: file/dir dentry + * @flags: Just passed to simple_lookup() + * + * Used to create dynamic file/dir with-in @dir, search with-in @ei + * list, if @dentry found go ahead and create the file/dir inode and + * dentries. + * + * This is used only for read only eventfs file system that displays + * only inframtion files for trace events. + */ static struct dentry *eventfs_root_lookup_ro(struct inode *dir, struct dentry *dentry, unsigned int flags) -- 2.53.0