]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nfsd: remove NFSD_V4_DELEG_TIMESTAMPS Kconfig option
authorJeff Layton <jlayton@kernel.org>
Mon, 26 Jan 2026 12:10:14 +0000 (07:10 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 30 Mar 2026 01:25:09 +0000 (21:25 -0400)
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>
fs/nfsd/Kconfig
fs/nfsd/nfs4state.c

index 4fd6e818565ea24e4e16844a3f82e808dbc558f8..fc0e87eaa25714d621aa893c99dabe4ce34228df 100644 (file)
@@ -177,16 +177,6 @@ config NFSD_LEGACY_CLIENT_TRACKING
          and will be removed in the future. Say Y here if you need support
          for them in the interim.
 
-config NFSD_V4_DELEG_TIMESTAMPS
-       bool "Support delegated timestamps"
-       depends on NFSD_V4
-       default n
-       help
-         NFSD implements delegated timestamps according to
-         draft-ietf-nfsv4-delstid-08 "Extending the Opening of Files". This
-         is currently an experimental feature and is therefore left disabled
-         by default.
-
 config NFSD_V4_POSIX_ACLS
        bool "Support NFSv4 POSIX draft ACLs"
        depends on NFSD_V4
index 99ade93ac12e0c8973d0f8373740130870a96e62..a767b562f991d47040cffdf68acef9b64a286b60 100644 (file)
@@ -6046,7 +6046,6 @@ nfsd4_verify_setuid_write(struct nfsd4_open *open, struct nfsd_file *nf)
        return 0;
 }
 
-#ifdef CONFIG_NFSD_V4_DELEG_TIMESTAMPS
 /*
  * Timestamp delegation was introduced in RFC7862. Runtime switch for disabling
  * this feature is /sys/kernel/debug/nfsd/delegated_timestamps.
@@ -6057,12 +6056,6 @@ static bool nfsd4_want_deleg_timestamps(const struct nfsd4_open *open)
                return false;
        return open->op_deleg_want & OPEN4_SHARE_ACCESS_WANT_DELEG_TIMESTAMPS;
 }
-#else /* CONFIG_NFSD_V4_DELEG_TIMESTAMPS */
-static bool nfsd4_want_deleg_timestamps(const struct nfsd4_open *open)
-{
-       return false;
-}
-#endif /* CONFIG NFSD_V4_DELEG_TIMESTAMPS */
 
 static struct nfs4_delegation *
 nfs4_set_delegation(struct nfsd4_open *open, struct nfs4_ol_stateid *stp,