diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-03-26 16:50:19 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-04-13 17:04:05 +0300 |
commit | 7f08a3359a3c1e39c2a118fbbe583d8c8db14ace (patch) | |
tree | 61e83917cd875311ba03afebeef2f0888798c610 /fs/nfs/proc.c | |
parent | 993e2d4bd9efc41f0943de39e9374ffdfde62e87 (diff) | |
download | linux-7f08a3359a3c1e39c2a118fbbe583d8c8db14ace.tar.xz |
NFSv4: Add support for the NFSv4.2 "change_attr_type" attribute
The change_attr_type allows the server to provide a description of how
the change attribute will behave. This again will allow the client to
optimise its behaviour w.r.t. attribute revalidation.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/proc.c')
-rw-r--r-- | fs/nfs/proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index 73ab7c59d3a7..ea19dbf12301 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c @@ -91,6 +91,7 @@ nfs_proc_get_root(struct nfs_server *server, struct nfs_fh *fhandle, info->dtpref = fsinfo.tsize; info->maxfilesize = 0x7FFFFFFF; info->lease_time = 0; + info->change_attr_type = NFS4_CHANGE_TYPE_IS_TIME_METADATA; return 0; } |