Sysfs cleanups & tagged directory support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest25 patches 53 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/25 | sysfs: Move all of inode initialization into sysfs_init_inodefs/ fs/ fs/ | +45 | 1 reply | |
| 2/25 | sysfs: Remove sysfs_instantiatefs/ fs/ fs/ | +1 | 1 reply | |
| 3/25 | sysfs: Use kill_anon_superfs/ | +1 | 1 reply | |
| 4/25 | sysfs: Make sysfs_mount staticfs/ fs/ fs/ +1 more | +5 | 1 reply | |
| 5/25 | sysfs: In sysfs_lookup don't open code sysfs_find_direntfs/ | +1 | 1 reply | |
| 6/25 | sysfs: Simplify readdir.fs/ | +44 | 1 reply | |
| 7/25 | sysfs: Rewrite sysfs_drop_dentry.fs/ | +26 | 1 reply | |
| 8/25 | sysfs: Implement __sysfs_get_dentryfs/ | +38 | 1 reply | |
| 9/25 | sysfs: Move sysfs_get_dentry below __sysfs_get_dentryfs/ | +98 | 1 reply | |
| 10/25 | sysfs: Rewrite sysfs_get_dentry in terms of __sysfs_get_dentryfs/ | +6 | 1 reply | |
| 11/25 | sysfs: Remove s_dentryfs/ fs/ fs/ | +4 | 1 reply | |
| 12/25 | sysfs: Introduce sysfs_rename_mutexfs/ fs/ fs/ | +12 | 3 replies | |
| 13/25 | sysfs: Simply sysfs_get_dentryfs/ | +6 | 1 reply | |
| 14/25 | sysfs: Don't use lookup_one_len_kernfs/ | +39 | 3 replies | |
| 15/25 | vfs: Remove lookup_one_len_kernfs/ include/ | +11 | 1 reply | |
| 16/25 | sysfs: Support for preventing unmounts.fs/ fs/ | +81 | 0 replies | |
| 17/25 | sysfs: Rewrite rename in terms of sysfs direntsfs/ | +16 | 2 replies | |
| 18/25 | sysfs: Rewrite sysfs_move_dir in terms of sysfs direntsfs/ | +18 | 1 reply | |
| 19/25 | sysfs: sysfs_get_dentry add a sb parameterfs/ fs/ fs/ | +10 | 2 replies | |
| 20/25 | sysfs: Rename Support multiple superblocksfs/ | +136 | 6 replies | |
| 21/25 | sysfs: sysfs_chmod_file handle multiple superblocksfs/ | +25 | 1 reply | |
| 22/25 | sysfs: sysfs_uptdate_file handle multiple superblocksfs/ | +21 | 1 reply | |
| 23/25 | sysfs: Implement sysfs tagged directory support.fs/ fs/ fs/ +6 more | +253 | 1 reply | |
| 24/25 | sysfs: Implement sysfs_delete_link and sysfs_rename_linkfs/ include/ | +49 | 0 replies | |
| 25/25 | driver core: Implement tagged directory support for device classes.drivers/ drivers/ include/ | +52 | 0 replies |
Reviews trailers per patch
12 of 25 patches have a Reviewed-by or Acked-by.
| Patch | Tejun Heo |
|---|---|
| 1/25 | A-b |
| 2/25 | A-b |
| 3/25 | A-b |
| 4/25 | A-b |
| 5/25 | A-b |
| 6/25 | A-b |
| 7/25 | |
| 8/25 | A-b |
| 9/25 | A-b |
| 10/25 | A-b |
| 11/25 | A-b |
| 12/25 | |
| 13/25 | A-b |
| 14/25 | |
| 15/25 | A-b |
| 16/25 | |
| 17/25 | |
| 18/25 | |
| 19/25 | |
| 20/25 | |
| 21/25 | |
| 22/25 | |
| 23/25 | |
| 24/25 | |
| 25/25 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/25] Sysfs cleanups & tagged directory support
The following patchset applies on top of the last round of sysfs cleanups that Tejun sent out on the 2nd.
My target with this patchset is to support sysfs directories with a tag on struct sysfs_dirent making them visible only on selected mounts of sysfs.
After going around and around the different possibilities I believe I have finally found something that works and is
reasonably maintainable. I believe I have achieved that
with only introducing some extra complexity in a few very localized places.
The worst part is the code to support multiple superblocks and thus multiple dentry tress for sysfs. I had allocate a linked list in sysfs_move_dir for all of the possible dentries I would need to call d_move on. Bleh. It works, it is correct and it is an atomic rename.
Eric
sysfs: Move all of inode initialization into sysfs_init_inode
sysfs: Remove sysfs_instantiate
sysfs: Use kill_anon_super
sysfs: Make sysfs_mount static
sysfs: In sysfs_lookup don't open code sysfs_find_dirent
sysfs: Simplify readdir.
sysfs: Rewrite sysfs_drop_dentry.
sysfs: Implement __sysfs_get_dentry
sysfs: Move sysfs_get_dentry below __sysfs_get_dentry
sysfs: Rewrite sysfs_get_dentry in terms of __sysfs_get_dentry
sysfs: Remove s_dentry
sysfs: Introduce sysfs_rename_mutex
sysfs: Simply sysfs_get_dentry
sysfs: Don't use lookup_one_len_kern
vfs: Remove lookup_one_len_kern
sysfs: Support for preventing unmounts.
sysfs: Rewrite rename in terms of sysfs dirents
sysfs: Rewrite sysfs_move_dir in terms of sysfs dirents
sysfs: sysfs_get_dentry add a sb parameter
sysfs: Rename Support multiple superblocks
sysfs: sysfs_chmod_file handle multiple superblocks
sysfs: sysfs_uptdate_file handle multiple superblocks
sysfs: Implement sysfs tagged directory support.
sysfs: Implement sysfs_delete_link and sysfs_rename_link driver core: Implement tagged directory support for device classes.