Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nfsd: remove NFSD_V4_DELEG_TIMESTAMPS Kconfig option

Now that there is a runtime debugfs switch, eliminate the compile-time
switch and always build in support for delegated timestamps.

Administrators who previously disabled this feature at compile time can
disable it at runtime via:

echo 0 > /sys/kernel/debug/nfsd/delegated_timestamps

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

authored by

Jeff Layton and committed by
Chuck Lever
01afb900 6237a17f

-17
-10
fs/nfsd/Kconfig
··· 177 177 and will be removed in the future. Say Y here if you need support 178 178 for them in the interim. 179 179 180 - config NFSD_V4_DELEG_TIMESTAMPS 181 - bool "Support delegated timestamps" 182 - depends on NFSD_V4 183 - default n 184 - help 185 - NFSD implements delegated timestamps according to 186 - draft-ietf-nfsv4-delstid-08 "Extending the Opening of Files". This 187 - is currently an experimental feature and is therefore left disabled 188 - by default. 189 - 190 180 config NFSD_V4_POSIX_ACLS 191 181 bool "Support NFSv4 POSIX draft ACLs" 192 182 depends on NFSD_V4
-7
fs/nfsd/nfs4state.c
··· 6046 6046 return 0; 6047 6047 } 6048 6048 6049 - #ifdef CONFIG_NFSD_V4_DELEG_TIMESTAMPS 6050 6049 /* 6051 6050 * Timestamp delegation was introduced in RFC7862. Runtime switch for disabling 6052 6051 * this feature is /sys/kernel/debug/nfsd/delegated_timestamps. ··· 6056 6057 return false; 6057 6058 return open->op_deleg_want & OPEN4_SHARE_ACCESS_WANT_DELEG_TIMESTAMPS; 6058 6059 } 6059 - #else /* CONFIG_NFSD_V4_DELEG_TIMESTAMPS */ 6060 - static bool nfsd4_want_deleg_timestamps(const struct nfsd4_open *open) 6061 - { 6062 - return false; 6063 - } 6064 - #endif /* CONFIG NFSD_V4_DELEG_TIMESTAMPS */ 6065 6060 6066 6061 static struct nfs4_delegation * 6067 6062 nfs4_set_delegation(struct nfsd4_open *open, struct nfs4_ol_stateid *stp,