diff options
author | David Howells <dhowells@redhat.com> | 2006-08-22 20:06:08 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-22 23:24:31 -0400 |
commit | adfa6f980bd46974e6b32b22dd0c45e3f52063f4 (patch) | |
tree | 7dbc86985faa0fce0e73103979262c1593ea3a3b /fs/nfs/nfs4_fs.h | |
parent | 5ae1fbce142b67bf59e15fb1af96e88a96abde7b (diff) |
NFS: Rename struct nfs4_client to struct nfs_client
Rename struct nfs4_client to struct nfs_client so that it can become the basis
for a general client record for NFS2 and NFS3 in addition to NFS4.
Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r-- | fs/nfs/nfs4_fs.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h index 9a102860df37..4e334cb48498 100644 --- a/fs/nfs/nfs4_fs.h +++ b/fs/nfs/nfs4_fs.h | |||
@@ -43,9 +43,9 @@ enum nfs4_client_state { | |||
43 | }; | 43 | }; |
44 | 44 | ||
45 | /* | 45 | /* |
46 | * The nfs4_client identifies our client state to the server. | 46 | * The nfs_client identifies our client state to the server. |
47 | */ | 47 | */ |
48 | struct nfs4_client { | 48 | struct nfs_client { |
49 | struct list_head cl_servers; /* Global list of servers */ | 49 | struct list_head cl_servers; /* Global list of servers */ |
50 | struct in_addr cl_addr; /* Server identifier */ | 50 | struct in_addr cl_addr; /* Server identifier */ |
51 | u64 cl_clientid; /* constant */ | 51 | u64 cl_clientid; /* constant */ |
@@ -127,7 +127,7 @@ static inline void nfs_confirm_seqid(struct nfs_seqid_counter *seqid, int status | |||
127 | struct nfs4_state_owner { | 127 | struct nfs4_state_owner { |
128 | spinlock_t so_lock; | 128 | spinlock_t so_lock; |
129 | struct list_head so_list; /* per-clientid list of state_owners */ | 129 | struct list_head so_list; /* per-clientid list of state_owners */ |
130 | struct nfs4_client *so_client; | 130 | struct nfs_client *so_client; |
131 | u32 so_id; /* 32-bit identifier, unique */ | 131 | u32 so_id; /* 32-bit identifier, unique */ |
132 | atomic_t so_count; | 132 | atomic_t so_count; |
133 | 133 | ||
@@ -210,10 +210,10 @@ extern ssize_t nfs4_listxattr(struct dentry *, char *, size_t); | |||
210 | 210 | ||
211 | /* nfs4proc.c */ | 211 | /* nfs4proc.c */ |
212 | extern int nfs4_map_errors(int err); | 212 | extern int nfs4_map_errors(int err); |
213 | extern int nfs4_proc_setclientid(struct nfs4_client *, u32, unsigned short, struct rpc_cred *); | 213 | extern int nfs4_proc_setclientid(struct nfs_client *, u32, unsigned short, struct rpc_cred *); |
214 | extern int nfs4_proc_setclientid_confirm(struct nfs4_client *, struct rpc_cred *); | 214 | extern int nfs4_proc_setclientid_confirm(struct nfs_client *, struct rpc_cred *); |
215 | extern int nfs4_proc_async_renew(struct nfs4_client *, struct rpc_cred *); | 215 | extern int nfs4_proc_async_renew(struct nfs_client *, struct rpc_cred *); |
216 | extern int nfs4_proc_renew(struct nfs4_client *, struct rpc_cred *); | 216 | extern int nfs4_proc_renew(struct nfs_client *, struct rpc_cred *); |
217 | extern int nfs4_do_close(struct inode *inode, struct nfs4_state *state); | 217 | extern int nfs4_do_close(struct inode *inode, struct nfs4_state *state); |
218 | extern struct dentry *nfs4_atomic_open(struct inode *, struct dentry *, struct nameidata *); | 218 | extern struct dentry *nfs4_atomic_open(struct inode *, struct dentry *, struct nameidata *); |
219 | extern int nfs4_open_revalidate(struct inode *, struct dentry *, int, struct nameidata *); | 219 | extern int nfs4_open_revalidate(struct inode *, struct dentry *, int, struct nameidata *); |
@@ -231,19 +231,19 @@ extern const u32 nfs4_fsinfo_bitmap[2]; | |||
231 | extern const u32 nfs4_fs_locations_bitmap[2]; | 231 | extern const u32 nfs4_fs_locations_bitmap[2]; |
232 | 232 | ||
233 | /* nfs4renewd.c */ | 233 | /* nfs4renewd.c */ |
234 | extern void nfs4_schedule_state_renewal(struct nfs4_client *); | 234 | extern void nfs4_schedule_state_renewal(struct nfs_client *); |
235 | extern void nfs4_renewd_prepare_shutdown(struct nfs_server *); | 235 | extern void nfs4_renewd_prepare_shutdown(struct nfs_server *); |
236 | extern void nfs4_kill_renewd(struct nfs4_client *); | 236 | extern void nfs4_kill_renewd(struct nfs_client *); |
237 | extern void nfs4_renew_state(void *); | 237 | extern void nfs4_renew_state(void *); |
238 | 238 | ||
239 | /* nfs4state.c */ | 239 | /* nfs4state.c */ |
240 | extern void init_nfsv4_state(struct nfs_server *); | 240 | extern void init_nfsv4_state(struct nfs_server *); |
241 | extern void destroy_nfsv4_state(struct nfs_server *); | 241 | extern void destroy_nfsv4_state(struct nfs_server *); |
242 | extern struct nfs4_client *nfs4_get_client(struct in_addr *); | 242 | extern struct nfs_client *nfs4_get_client(struct in_addr *); |
243 | extern void nfs4_put_client(struct nfs4_client *clp); | 243 | extern void nfs4_put_client(struct nfs_client *clp); |
244 | extern struct nfs4_client *nfs4_find_client(struct in_addr *); | 244 | extern struct nfs_client *nfs4_find_client(struct in_addr *); |
245 | struct rpc_cred *nfs4_get_renew_cred(struct nfs4_client *clp); | 245 | struct rpc_cred *nfs4_get_renew_cred(struct nfs_client *clp); |
246 | extern u32 nfs4_alloc_lockowner_id(struct nfs4_client *); | 246 | extern u32 nfs4_alloc_lockowner_id(struct nfs_client *); |
247 | 247 | ||
248 | extern struct nfs4_state_owner * nfs4_get_state_owner(struct nfs_server *, struct rpc_cred *); | 248 | extern struct nfs4_state_owner * nfs4_get_state_owner(struct nfs_server *, struct rpc_cred *); |
249 | extern void nfs4_put_state_owner(struct nfs4_state_owner *); | 249 | extern void nfs4_put_state_owner(struct nfs4_state_owner *); |
@@ -252,7 +252,7 @@ extern struct nfs4_state * nfs4_get_open_state(struct inode *, struct nfs4_state | |||
252 | extern void nfs4_put_open_state(struct nfs4_state *); | 252 | extern void nfs4_put_open_state(struct nfs4_state *); |
253 | extern void nfs4_close_state(struct nfs4_state *, mode_t); | 253 | extern void nfs4_close_state(struct nfs4_state *, mode_t); |
254 | extern void nfs4_state_set_mode_locked(struct nfs4_state *, mode_t); | 254 | extern void nfs4_state_set_mode_locked(struct nfs4_state *, mode_t); |
255 | extern void nfs4_schedule_state_recovery(struct nfs4_client *); | 255 | extern void nfs4_schedule_state_recovery(struct nfs_client *); |
256 | extern void nfs4_put_lock_state(struct nfs4_lock_state *lsp); | 256 | extern void nfs4_put_lock_state(struct nfs4_lock_state *lsp); |
257 | extern int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl); | 257 | extern int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl); |
258 | extern void nfs4_copy_stateid(nfs4_stateid *, struct nfs4_state *, fl_owner_t); | 258 | extern void nfs4_copy_stateid(nfs4_stateid *, struct nfs4_state *, fl_owner_t); |