Skip to content

debugfs: Remove broken no-mount mode

Aaron Thompson linux-doc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2debugfs: Remove redundant access mode checksfs/debugfs/inode.c+0 -180 replies
2/2debugfs: Remove broken no-mount modeDocumentation/admin-guide/kernel-parameters.txt fs/debugfs/inode.c fs/debugfs/internal.h +1 more+13 -334 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchChen-Yu Tsai
1/2
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] debugfs: Remove broken no-mount mode

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

Signature · 1 line
2.47.3