linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] debugfs: Remove broken no-mount mode
@ 2025-11-20 10:26 Aaron Thompson
  2025-11-20 10:26 ` [PATCH 1/2] debugfs: Remove redundant access mode checks Aaron Thompson
  2025-11-20 10:26 ` [PATCH 2/2] debugfs: Remove broken no-mount mode Aaron Thompson
  0 siblings, 2 replies; 7+ messages in thread
From: Aaron Thompson @ 2025-11-20 10:26 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich
  Cc: Jonathan Corbet, Andrew Morton, linux-doc, linux-kernel,
	Aaron Thompson

Hi all,

This patch removes the debugfs no-mount mode because it hasn't worked as
intended for several years. When I noticed that it wasn't working, I first
started coding a fix, which is straightforward. But after looking into the
history, it seems pretty clear that this mode isn't being used, so I think it
makes more sense to remove it.

The code could be made a tiny bit simpler and more consistent if we change the
off mode error code from -EPERM to -ENOENT. That would make the off case and the
uninitialized case always the same. The documentation for the off mode
specifically says that the error code is -EPERM however, so I stuck with that
for now.

Thanks!

Aaron Thompson (2):
  debugfs: Remove redundant access mode checks
  debugfs: Remove broken no-mount mode

 .../admin-guide/kernel-parameters.txt         |  6 +---
 fs/debugfs/inode.c                            | 36 ++++++-------------
 fs/debugfs/internal.h                         | 13 -------
 lib/Kconfig.debug                             |  9 +----
 4 files changed, 13 insertions(+), 51 deletions(-)


base-commit: 6a23ae0a96a600d1d12557add110e0bb6e32730c
-- 
2.47.3


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-12-02  6:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-20 10:26 [PATCH 0/2] debugfs: Remove broken no-mount mode Aaron Thompson
2025-11-20 10:26 ` [PATCH 1/2] debugfs: Remove redundant access mode checks Aaron Thompson
2025-11-20 10:26 ` [PATCH 2/2] debugfs: Remove broken no-mount mode Aaron Thompson
2025-12-01 17:15   ` Mark Brown
2025-12-01 22:16     ` Aaron Thompson
2025-12-02  5:19       ` Greg Kroah-Hartman
2025-12-02  6:01       ` Chen-Yu Tsai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).