summaryrefslogtreecommitdiff
path: root/include/linux/nfs4.h
diff options
context:
space:
mode:
authorAnna Schumaker <bjschuma@netapp.com>2013-10-30 13:38:13 -0400
committerJ. Bruce Fields <bfields@redhat.com>2013-10-30 18:25:04 -0400
commit8217d146ab98a1790349d79c436176658e311e3c (patch)
tree7bc6d2e849a0d9bdcc31dc84fec9a2e9f4c882e3 /include/linux/nfs4.h
parente50a26dc785f12a6df1f1ac16d62faf0342b72af (diff)
downloadlwn-8217d146ab98a1790349d79c436176658e311e3c.tar.gz
lwn-8217d146ab98a1790349d79c436176658e311e3c.zip
NFSD: Add support for NFS v4.2 operation checking
The server does allow NFS over v4.2, even if it doesn't add any new operations yet. I also switch to using constants to represent the last operation for each minor version since this makes the code cleaner and easier to understand at a quick glance. Signed-off-by: Anna Schumaker <bjschuma@netapp.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/nfs4.h')
-rw-r--r--include/linux/nfs4.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h
index e36dee52f224..737e40e4c554 100644
--- a/include/linux/nfs4.h
+++ b/include/linux/nfs4.h
@@ -118,6 +118,9 @@ Needs to be updated if more operations are defined in future.*/
#define FIRST_NFS4_OP OP_ACCESS
#define LAST_NFS4_OP OP_RECLAIM_COMPLETE
+#define LAST_NFS40_OP OP_RELEASE_LOCKOWNER
+#define LAST_NFS41_OP OP_RECLAIM_COMPLETE
+#define LAST_NFS42_OP OP_RECLAIM_COMPLETE
enum nfsstat4 {
NFS4_OK = 0,