Skip to contentSkip to conversation

relay-remove-unused-relay_late_setup_files.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message May 12, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: relay: remove unused relay_late_setup_files
has been removed from the -mm tree. Its filename was
relay-remove-unused-relay_late_setup_files.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: "Dr. David Alan Gilbert" <[email protected]>
Subject: relay: remove unused relay_late_setup_files
Date: Sat, 19 Apr 2025 00:49:32 +0100

The last use of relay_late_setup_files() was removed in 2018 by commit 2b47733045aa ("drm/i915/guc: Merge log relay file and channel creation")

Remove it and the helper it used.

relay_late_setup_files() was used for eventually registering 'buffer only' channels. With it gone, delete the docs that explain how to do that. Which suggests it should be possible to lose the 'has_base_filename' flags.

(Are there any other uses??)

---

 Documentation/filesystems/relay.rst |   10 --
 include/linux/relay.h               |    3 
 kernel/relay.c                      |  111 --------------------------
 3 files changed, 1 insertion(+), 123 deletions(-)
Documentation/filesystems/relay.rst renamed from Documentation/filesystems/relay.rst~relay-remove-unused-relay_late_setup_files +0 -10
@@ -301,16 +301,6 @@ user-defined data with a channel, and is
 (including in create_buf_file()) via chan->private_data or
 buf->chan->private_data.
 
-Buffer-only channels
---------------------
-
-These channels have no files associated and can be created with
-relay_open(NULL, NULL, ...). Such channels are useful in scenarios such
-as when doing early tracing in the kernel, before the VFS is up. In these
-cases, one may open a buffer-only channel and then call
-relay_late_setup_files() when the kernel is ready to handle files,
-to expose the buffered data to the userspace.
-
 Channel 'modes'
 ---------------
 
include/linux/relay.h renamed from include/linux/relay.h~relay-remove-unused-relay_late_setup_files +0 -3
@@ -159,9 +159,6 @@ struct rchan *relay_open(const char *bas
 			 size_t n_subbufs,
 			 const struct rchan_callbacks *cb,
 			 void *private_data);
-extern int relay_late_setup_files(struct rchan *chan,
-				  const char *base_filename,
-				  struct dentry *parent);
 extern void relay_close(struct rchan *chan);
 extern void relay_flush(struct rchan *chan);
 extern void relay_subbufs_consumed(struct rchan *chan,
kernel/relay.c renamed from kernel/relay.c~relay-remove-unused-relay_late_setup_files +1 -110

129 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are