diff options
| author | Anna Schumaker <bjschuma@netapp.com> | 2013-11-13 12:29:08 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-11-19 16:20:40 -0500 |
| commit | 694e096fd7c2a7d40760fc9c9dfc826bdd495ea4 (patch) | |
| tree | 718e6db209f6db22e70555a8c6b97ad3b5422889 /include/linux | |
| parent | 8c2fabc6542d9d0f8b16bd1045c2eda59bdcde13 (diff) | |
NFS: Enabling v4.2 should not recompile nfsd and lockd
When CONFIG_NFS_V4_2 is toggled nfsd and lockd will be recompiled,
instead of only the nfs client. This patch moves a small amount of code
into the client directory to avoid unnecessary recompiles.
Signed-off-by: Anna Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nfs4.h | 10 | ||||
| -rw-r--r-- | include/linux/nfs_fs.h | 18 |
2 files changed, 0 insertions, 28 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h index c6f41b616965..ddd84871c0ad 100644 --- a/include/linux/nfs4.h +++ b/include/linux/nfs4.h | |||
| @@ -410,16 +410,6 @@ enum lock_type4 { | |||
| 410 | #define NFS4_VERSION 4 | 410 | #define NFS4_VERSION 4 |
| 411 | #define NFS4_MINOR_VERSION 0 | 411 | #define NFS4_MINOR_VERSION 0 |
| 412 | 412 | ||
| 413 | #if defined(CONFIG_NFS_V4_2) | ||
| 414 | #define NFS4_MAX_MINOR_VERSION 2 | ||
| 415 | #else | ||
| 416 | #if defined(CONFIG_NFS_V4_1) | ||
| 417 | #define NFS4_MAX_MINOR_VERSION 1 | ||
| 418 | #else | ||
| 419 | #define NFS4_MAX_MINOR_VERSION 0 | ||
| 420 | #endif /* CONFIG_NFS_V4_1 */ | ||
| 421 | #endif /* CONFIG_NFS_V4_2 */ | ||
| 422 | |||
| 423 | #define NFS4_DEBUG 1 | 413 | #define NFS4_DEBUG 1 |
| 424 | 414 | ||
| 425 | /* Index of predefined Linux client operations */ | 415 | /* Index of predefined Linux client operations */ |
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 14a48207a304..48997374eaf0 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
| @@ -507,24 +507,6 @@ extern int nfs_mountpoint_expiry_timeout; | |||
| 507 | extern void nfs_release_automount_timer(void); | 507 | extern void nfs_release_automount_timer(void); |
| 508 | 508 | ||
| 509 | /* | 509 | /* |
| 510 | * linux/fs/nfs/nfs4proc.c | ||
| 511 | */ | ||
| 512 | #ifdef CONFIG_NFS_V4_SECURITY_LABEL | ||
| 513 | extern struct nfs4_label *nfs4_label_alloc(struct nfs_server *server, gfp_t flags); | ||
| 514 | static inline void nfs4_label_free(struct nfs4_label *label) | ||
| 515 | { | ||
| 516 | if (label) { | ||
| 517 | kfree(label->label); | ||
| 518 | kfree(label); | ||
| 519 | } | ||
| 520 | return; | ||
| 521 | } | ||
| 522 | #else | ||
| 523 | static inline struct nfs4_label *nfs4_label_alloc(struct nfs_server *server, gfp_t flags) { return NULL; } | ||
| 524 | static inline void nfs4_label_free(void *label) {} | ||
| 525 | #endif | ||
| 526 | |||
| 527 | /* | ||
| 528 | * linux/fs/nfs/unlink.c | 510 | * linux/fs/nfs/unlink.c |
| 529 | */ | 511 | */ |
| 530 | extern void nfs_complete_unlink(struct dentry *dentry, struct inode *); | 512 | extern void nfs_complete_unlink(struct dentry *dentry, struct inode *); |
