diff options
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfssvc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 55b5b57b5715..9a4a5f9e7468 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c | |||
@@ -243,7 +243,11 @@ static void nfsd_shutdown_generic(void) | |||
243 | 243 | ||
244 | static bool nfsd_needs_lockd(void) | 244 | static bool nfsd_needs_lockd(void) |
245 | { | 245 | { |
246 | #if defined(CONFIG_NFSD_V3) | ||
246 | return (nfsd_versions[2] != NULL) || (nfsd_versions[3] != NULL); | 247 | return (nfsd_versions[2] != NULL) || (nfsd_versions[3] != NULL); |
248 | #else | ||
249 | return (nfsd_versions[2] != NULL); | ||
250 | #endif | ||
247 | } | 251 | } |
248 | 252 | ||
249 | static int nfsd_startup_net(int nrservs, struct net *net) | 253 | static int nfsd_startup_net(int nrservs, struct net *net) |