Skip to content

RFC possible debugfs/libfs consolidation

Arnd Bergmann linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest11 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11add generic versions of debugfs file operationsfs/Makefile fs/libfs/Makefile fs/libfs/file.c +2 more+162 -34 replies
2/11introduce simple_fs_typefs/autofs4/autofs_i.h fs/libfs.c fs/libfs/Makefile +4 more+646 -1182 replies
3/11slim down debugfsdrivers/net/wireless/rt2x00/rt2x00debug.c fs/Kconfig fs/debugfs/file.c +2 more+44 -4233 replies
4/11slim down securityfssecurity/inode.c+12 -2110 replies
5/11slim down usbfsdrivers/usb/core/inode.c+27 -3190 replies
6/11split out linux/libfs.h from linux/fs.harch/powerpc/platforms/cell/spufs/spufs.h drivers/usb/core/inode.c fs/autofs4/autofs_i.h +13 more+104 -910 replies
7/11split out libfs/file.c from libfs.cfs/libfs.c fs/libfs/file.c+166 -1660 replies
8/11split out libfs/dentry.c from libfs.cfs/libfs.c fs/libfs/Makefile fs/libfs/dentry.c+294 -2820 replies
9/11split out libfs/super.c from libfs.cfs/libfs.c fs/libfs/super.c+54 -580 replies
10/11split out libfs/inode.c from libfs.cfs/libfs.c fs/libfs/inode.c+75 -770 replies
11/11split out libfs/aops.c from libfs.cfs/libfs.c fs/libfs/Makefile fs/libfs/aops.c+114 -1170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 00/11] possible debugfs/libfs consolidation

I noticed that there is a lot of duplication in pseudo file systems, so I started looking into how to consolidate them. I ended up with a largish rework of the structure of libfs and moving almost all of debugfs in there as well.

As an example, I also have patches that reduce debugfs, securityfs and usbfs to the point where they are mostly thin wrappers around libfs, with large comment blocks. Other file systems could be changed in the same way, but I first like to see if people agree that I'm on the right track.

These patches have seen practically no testing so far, so don't expect them to work, but please tell me what you think about the concept.

	Arnd <><