diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-08-31 23:25:46 +0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-09-01 01:55:59 +0400 |
commit | 5fa0bbb4ee5481a6b3e83c4968142ca433d71914 (patch) | |
tree | c49d35667fdbb86979b92f0c51c1492b45c47332 /fs/nfsd/state.h | |
parent | c2d8eb7ac645e1baba7205cb2631e2f21db3d6a9 (diff) | |
download | linux-5fa0bbb4ee5481a6b3e83c4968142ca433d71914.tar.xz |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index 6b706a60ce88..a06f55bd38b6 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; |