aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs_sb.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-06-27 11:45:46 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-06-27 11:48:58 -0400
commit6c5a0d891543873aefc3aaf846c1e7afe0982ff9 (patch)
tree67c0fa7f5c11a4288041a60280171f9c53d1f2ea /include/linux/nfs_fs_sb.h
parentNFSv4.2: Fix up a decoding error in layoutstats (diff)
downloadlinux-dev-6c5a0d891543873aefc3aaf846c1e7afe0982ff9.tar.xz
linux-dev-6c5a0d891543873aefc3aaf846c1e7afe0982ff9.zip
NFSv4.2: LAYOUTSTATS is optional to implement
Make it so, by checking the return value for NFS4ERR_MOTSUPP and caching the information as a server capability. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux/nfs_fs_sb.h')
-rw-r--r--include/linux/nfs_fs_sb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h
index 5e1273d4de14..a2ea1491d3df 100644
--- a/include/linux/nfs_fs_sb.h
+++ b/include/linux/nfs_fs_sb.h
@@ -237,5 +237,6 @@ struct nfs_server {
#define NFS_CAP_SEEK (1U << 19)
#define NFS_CAP_ALLOCATE (1U << 20)
#define NFS_CAP_DEALLOCATE (1U << 21)
+#define NFS_CAP_LAYOUTSTATS (1U << 22)
#endif