summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-08-31 15:25:46 -0400
committerJ. Bruce Fields <bfields@redhat.com>2011-08-31 17:55:59 -0400
commit5fa0bbb4ee5481a6b3e83c4968142ca433d71914 (patch)
treec49d35667fdbb86979b92f0c51c1492b45c47332 /fs/nfsd/state.h
parentc2d8eb7ac645e1baba7205cb2631e2f21db3d6a9 (diff)
downloadop-kernel-dev-5fa0bbb4ee5481a6b3e83c4968142ca433d71914.zip
op-kernel-dev-5fa0bbb4ee5481a6b3e83c4968142ca433d71914.tar.gz
nfsd4: simplify distinguishing lock & open stateid's
The trick free_stateid is using is a little cheesy, and we'll have more uses for this field later. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r--fs/nfsd/state.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index 6b706a6..a06f55b 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -425,6 +425,9 @@ static inline struct file *find_any_file(struct nfs4_file *f)
*/
struct nfs4_stateid {
+#define NFS4_OPEN_STID 1
+#define NFS4_LOCK_STID 2
+ char st_type;
struct list_head st_hash;
struct list_head st_perfile;
struct list_head st_perstateowner;
OpenPOWER on IntegriCloud