diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-07-29 21:34:08 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-07-31 12:51:34 -0400 |
commit | 11b9164adad7cd119b82b1f2c911a6d9bc67f1cc (patch) | |
tree | 865bd5d31dccec6f6ff9d71534e83dad10e9e215 /fs/nfsd/state.h | |
parent | 6011695da2d7c588f2dfe57c318758f0bf1154dd (diff) |
nfsd: Add a struct nfs4_file field to struct nfs4_stid
All stateids are associated with a nfs4_file. Let's consolidate.
Replace delegation->dl_file with the dl_stid.sc_file, and
nfs4_ol_stateid->st_file with st_stid.sc_file.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
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, 1 insertions, 2 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index 32c466265ac1..af1d9c42e939 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h | |||
@@ -85,6 +85,7 @@ struct nfs4_stid { | |||
85 | unsigned char sc_type; | 85 | unsigned char sc_type; |
86 | stateid_t sc_stateid; | 86 | stateid_t sc_stateid; |
87 | struct nfs4_client *sc_client; | 87 | struct nfs4_client *sc_client; |
88 | struct nfs4_file *sc_file; | ||
88 | void (*sc_free)(struct nfs4_stid *); | 89 | void (*sc_free)(struct nfs4_stid *); |
89 | }; | 90 | }; |
90 | 91 | ||
@@ -93,7 +94,6 @@ struct nfs4_delegation { | |||
93 | struct list_head dl_perfile; | 94 | struct list_head dl_perfile; |
94 | struct list_head dl_perclnt; | 95 | struct list_head dl_perclnt; |
95 | struct list_head dl_recall_lru; /* delegation recalled */ | 96 | struct list_head dl_recall_lru; /* delegation recalled */ |
96 | struct nfs4_file *dl_file; | ||
97 | u32 dl_type; | 97 | u32 dl_type; |
98 | time_t dl_time; | 98 | time_t dl_time; |
99 | /* For recall: */ | 99 | /* For recall: */ |
@@ -407,7 +407,6 @@ struct nfs4_ol_stateid { | |||
407 | struct list_head st_perstateowner; | 407 | struct list_head st_perstateowner; |
408 | struct list_head st_locks; | 408 | struct list_head st_locks; |
409 | struct nfs4_stateowner * st_stateowner; | 409 | struct nfs4_stateowner * st_stateowner; |
410 | struct nfs4_file * st_file; | ||
411 | unsigned char st_access_bmap; | 410 | unsigned char st_access_bmap; |
412 | unsigned char st_deny_bmap; | 411 | unsigned char st_deny_bmap; |
413 | struct nfs4_ol_stateid * st_openstp; | 412 | struct nfs4_ol_stateid * st_openstp; |