aboutsummaryrefslogtreecommitdiffstats
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)
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 6b706a60ce8..a06f55bd38b 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)
425*/ 425*/
426 426
427struct nfs4_stateid { 427struct nfs4_stateid {
428#define NFS4_OPEN_STID 1
429#define NFS4_LOCK_STID 2
430 char st_type;
428 struct list_head st_hash; 431 struct list_head st_hash;
429 struct list_head st_perfile; 432 struct list_head st_perfile;
430 struct list_head st_perstateowner; 433 struct list_head st_perstateowner;