NFS: Create NFS Modules
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest44 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/44 | NFS: ifndef guard internal.hfs/ | +4 | 0 replies | |
| 2/44 | NFS: Relocate the stat_to_errno() functionfs/ fs/ | +66 | 0 replies | |
| 3/44 | NFS: Make v2 configurablefs/ fs/ fs/ | +22 | 0 replies | |
| 4/44 | NFS: Add version registering frameworkfs/ fs/ fs/ +1 more | +216 | 0 replies | |
| 5/44 | NFS: Move v2 to new subdirectoryfs/ fs/ fs/ | +3 | 0 replies | |
| 6/44 | NFS: Export symbols needed by a v2 modulefs/ fs/ fs/ +2 more | +78 | 0 replies | |
| 7/44 | NFS: Convert NFS v2 into a modulefs/ fs/ fs/ +8 more | +134 | 0 replies | |
| 8/44 | NFS: Created custom init_aclclient() functionsfs/ fs/ fs/ +3 more | +29 | 0 replies | |
| 9/44 | NFS: Move v3 to its own subdirectoryfs/ fs/ fs/ +1 more | +6 | 0 replies | |
| 10/44 | NFS: Export symbols needed by a v3 modulefs/ fs/ | +4 | 0 replies | |
| 11/44 | NFS: Switch to using the IS_ENABLED macro for CONFIG_NFS_V3fs/ fs/ fs/ +4 more | +16 | 0 replies | |
| 12/44 | NFS: Convert NFS v3 into a modulefs/ fs/ fs/ +11 more | +220 | 0 replies | |
| 13/44 | NFS: Remove unused codefs/ fs/ fs/ +1 more | +0 | 0 replies | |
| 14/44 | NFS: Move v4 to its own subdirectoryfs/ fs/ fs/ +23 more | +44 | 0 replies | |
| 15/44 | NFS: Move init_aclclient() into the v4 subdirectoryfs/ fs/ fs/ | +16 | 0 replies | |
| 16/44 | NFS: Create a version-specific do_submount() functionfs/ fs/ fs/ +4 more | +37 | 0 replies | |
| 17/44 | NFS: Added in a custom do_clone_mount() functionfs/ fs/ fs/ +4 more | +33 | 0 replies | |
| 18/44 | NFS: Give versions a custom have_delegation() functionfs/ fs/ fs/ +5 more | +25 | 0 replies | |
| 19/44 | NFS: Give versions a custom have_delegated_attributes() functionfs/ fs/ fs/ +5 more | +28 | 0 replies | |
| 20/44 | NFS: Give versions a custom return_delegation() functionfs/ fs/ fs/ +6 more | +16 | 0 replies | |
| 21/44 | NFS: Add a function to run when shutting down a clientfs/ fs/ fs/ +3 more | +54 | 0 replies | |
| 22/44 | NFS: Split nfs_fs_mount() into two functionsfs/ | +48 | 0 replies | |
| 23/44 | NFS: Create a custom try_mount() function for each versionfs/ fs/ fs/ +3 more | +20 | 0 replies | |
| 24/44 | NFS: Create a separate valadet_text_mount_data() functionfs/ | +26 | 0 replies | |
| 25/44 | NFS: Create a custom validate_mount_data() functionfs/ fs/ fs/ +3 more | +23 | 0 replies | |
| 26/44 | NFS: Create an idr_lock to protect the cb_idrfs/ | +15 | 0 replies | |
| 27/44 | NFS: Create a custom alloc_client() functionfs/ fs/ fs/ +6 more | +52 | 0 replies | |
| 28/44 | NFS: Create a custom put_client() functionfs/ fs/ fs/ +6 more | +23 | 0 replies | |
| 29/44 | NFS: Create the nfs4/module.c filefs/ fs/ fs/ +3 more | +65 | 0 replies | |
| 30/44 | NFS: Move over NFS v4 sysctlsfs/ fs/ fs/ +3 more | +16 | 0 replies | |
| 31/44 | NFS: Move v4 getroot code to the v4 directoryfs/ fs/ fs/ +1 more | +144 | 0 replies | |
| 32/44 | NFS: Move a v4 block from inode.cfs/ fs/ fs/ +1 more | +31 | 0 replies | |
| 33/44 | NFS: Move over the v4_file_operations structurefs/ fs/ fs/ | +39 | 0 replies | |
| 34/44 | NFS: Move v4-only functions from dir.cfs/ fs/ fs/ +1 more | +335 | 0 replies | |
| 35/44 | NFS: Register the v4 filesystem type from nfs4/module.cfs/ fs/ fs/ | +10 | 0 replies | |
| 36/44 | NFS: Export functions from super.cfs/ fs/ | +64 | 0 replies | |
| 37/44 | NFS: Move v4 super code to the nfs4/ directoryfs/ fs/ fs/ | +732 | 0 replies | |
| 38/44 | NFS: Only initialize pnfs in the v4.x casefs/ fs/ fs/ +2 more | +71 | 0 replies | |
| 39/44 | NFS: Create accessor functions for the nfs_client_list()fs/ fs/ | +22 | 0 replies | |
| 40/44 | NFS: Export functions from client.cfs/ fs/ | +32 | 0 replies | |
| 41/44 | NFS: Move v4 client.c code to nfs4/client.cfs/ fs/ | +617 | 0 replies | |
| 42/44 | NFS: Switch to using IS_ENABLED macro for CONFIG_NFS_V4fs/ fs/ fs/ +8 more | +35 | 0 replies | |
| 43/44 | NFS: Export functions needed by a v4 modulefs/ fs/ fs/ +6 more | +29 | 6 replies | |
| 44/44 | NFS: Convert NFS v4 into a modulefs/ fs/ fs/ +3 more | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/44] NFS: Create NFS Modules
From: Bryan Schumaker <[email protected]>
This patch series turns NFS v2, v3 and v4 into loadable kernel modules that need to be loaded before using. This should eventually help clean up all of the NFS code by giving us a chance to remove most of the ifdefs that check for CONFIG_NFS_V3 and CONFIG_NFS_V4.
I move as much code as I needed to get everything to compile, so removing all the ifdefs will still require a bit more work. I'm hoping that this is a good start, however. Whenever I created a new file with copy and pasted code I copied the copyright line from the original file. If somebody else has the copyright let me know and I'll change the copyright line in a future version of these patches.
Parts of NFS 4.1 are still compiled into the generic client but other parts have migrated into the nfs4.ko module. Therefore, to use v4.1 you will need to run modprobe nfs4.
Patch Map
---------
- Patches 01 and 02 do basic preparations
- Patch 03 make NFS v2 a Kconfig option
- Patch 04 adds in the NFS version registering framework
- Patches 05 - 07 turn NFS v2 into a loadable module, note that v2 is directly compiled into nfs.ko until patch 07.
- Patches 08 - 12 do the setup and conversion of v3 into a loadable module with updates to the v2 module happening in patch 08. v3 isn't a module until patch 12.
- Patch 13 is a small cleanup patch to remove code that is no longer used once v2 and v3 are turned into modules.
- Patch 14 - 44 do the necessary preperations and conversion of v4 into a kernel module. Updates to the v2 and v3 modules happen througout the preparation patches. v4 is moved into its own subdirectory in patch 14 and I gradually move code over throughout the rest of the patches to avoid a huge "copy everything at once" patch. v4 is still compiled into nfs.ko until patch 44 is applied.
Is there a git diff shortcut for moving a large chunk of code from one file to another? Patch 37 and 41 move #ifdef CONFIG_NFS_V4 blocks into the nfs4/ subdirectory, but so much needed to be moved to keep everything bisectable that both patches are 1300+ lines. The patches leading up to both of these do the necessary work so I could cut and paste code without having to do much else to get it to compile.
I use a function pointer set in an nfs_subversion structure to determine if a v2, v3, or v4 implementation should be called in various places. Most of these function pointers had to be addid in places where NFS v4 did something slighly differently. I would eventually like to see if any of the function pointers can be removed by defining new nfs4 functions in any of the nfs4 structures (file_system_type, super_operations, inode_operations, ...).
Comments and suggestions are appreciated. Thanks!
- Bryan