Skip to content

Commit d9092b4

Browse files
daimngoTrond Myklebust
authored andcommitted
NFSv4.2: Remove ifdef CONFIG_NFSD from NFSv4.2 client SSC code.
The client SSC code should not depend on any of the CONFIG_NFSD config. This patch removes all CONFIG_NFSD from NFSv4.2 client SSC code and simplifies the config of CONFIG_NFS_V4_2_SSC_HELPER, NFSD_V4_2_INTER_SSC. Signed-off-by: Dai Ngo <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent 13bcf7e commit d9092b4

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

fs/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ config NFS_COMMON
334334
default y
335335

336336
config NFS_V4_2_SSC_HELPER
337-
tristate
338-
default y if NFS_V4=y || NFS_FS=y
337+
bool
338+
default y if NFS_V4_2
339339

340340
source "net/sunrpc/Kconfig"
341341
source "fs/ceph/Kconfig"

fs/nfs/nfs4file.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,7 @@ static const struct nfs4_ssc_client_ops nfs4_ssc_clnt_ops_tbl = {
420420
*/
421421
void nfs42_ssc_register_ops(void)
422422
{
423-
#ifdef CONFIG_NFSD_V4
424423
nfs42_ssc_register(&nfs4_ssc_clnt_ops_tbl);
425-
#endif
426424
}
427425

428426
/**
@@ -433,9 +431,7 @@ void nfs42_ssc_register_ops(void)
433431
*/
434432
void nfs42_ssc_unregister_ops(void)
435433
{
436-
#ifdef CONFIG_NFSD_V4
437434
nfs42_ssc_unregister(&nfs4_ssc_clnt_ops_tbl);
438-
#endif
439435
}
440436
#endif /* CONFIG_NFS_V4_2 */
441437

fs/nfs/super.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,12 @@ static void unregister_nfs4_fs(void)
116116
#ifdef CONFIG_NFS_V4_2
117117
static void nfs_ssc_register_ops(void)
118118
{
119-
#ifdef CONFIG_NFSD_V4
120119
nfs_ssc_register(&nfs_ssc_clnt_ops_tbl);
121-
#endif
122120
}
123121

124122
static void nfs_ssc_unregister_ops(void)
125123
{
126-
#ifdef CONFIG_NFSD_V4
127124
nfs_ssc_unregister(&nfs_ssc_clnt_ops_tbl);
128-
#endif
129125
}
130126
#endif /* CONFIG_NFS_V4_2 */
131127

fs/nfsd/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ config NFSD_FLEXFILELAYOUT
138138

139139
config NFSD_V4_2_INTER_SSC
140140
bool "NFSv4.2 inter server to server COPY"
141-
depends on NFSD_V4 && NFS_V4_1 && NFS_V4_2
141+
depends on NFSD_V4 && NFS_V4_2
142142
help
143143
This option enables support for NFSv4.2 inter server to
144144
server copy where the destination server calls the NFSv4.2

0 commit comments

Comments
 (0)