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>
This commit is contained in:
J. Bruce Fields
2011-08-31 15:25:46 -04:00
parent c2d8eb7ac6
commit 5fa0bbb4ee
2 changed files with 6 additions and 6 deletions

View File

@ -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;