mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
lockd: move lockd's grace period handling into its own module
Currently, all of the grace period handling is part of lockd. Eventually though we'd like to be able to build v4-only servers, at which point we'll need to put all of this elsewhere. Move the code itself into fs/nfs_common and have it build a grace.ko module. Then, rejigger the Kconfig options so that both nfsd and lockd enable it automatically. Signed-off-by: Jeff Layton <[email protected]>
This commit is contained in:
parent
f0c63124a6
commit
f779002965
8 changed files with 70 additions and 15 deletions
|
|
@ -233,9 +233,13 @@ if NETWORK_FILESYSTEMS
|
|||
source "fs/nfs/Kconfig"
|
||||
source "fs/nfsd/Kconfig"
|
||||
|
||||
config GRACE_PERIOD
|
||||
tristate
|
||||
|
||||
config LOCKD
|
||||
tristate
|
||||
depends on FILE_LOCKING
|
||||
select GRACE_PERIOD
|
||||
|
||||
config LOCKD_V4
|
||||
bool
|
||||
|
|
@ -249,7 +253,7 @@ config NFS_ACL_SUPPORT
|
|||
|
||||
config NFS_COMMON
|
||||
bool
|
||||
depends on NFSD || NFS_FS
|
||||
depends on NFSD || NFS_FS || LOCKD
|
||||
default y
|
||||
|
||||
source "net/sunrpc/Kconfig"
|
||||
|
|
|
|||
Loading…
Reference in a new issue