File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ void nfs_local_disable(struct nfs_client *clp)
140
140
spin_lock (& clp -> cl_localio_lock );
141
141
if (test_and_clear_bit (NFS_CS_LOCAL_IO , & clp -> cl_flags )) {
142
142
trace_nfs_local_disable (clp );
143
- nfs_uuid_invalidate_one_client (& clp -> cl_uuid );
143
+ nfs_localio_disable_client (& clp -> cl_uuid );
144
144
}
145
145
spin_unlock (& clp -> cl_localio_lock );
146
146
}
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ static void nfs_uuid_put_locked(nfs_uuid_t *nfs_uuid)
107
107
list_del_init (& nfs_uuid -> list );
108
108
}
109
109
110
- void nfs_uuid_invalidate_clients (struct list_head * list )
110
+ void nfs_localio_invalidate_clients (struct list_head * list )
111
111
{
112
112
nfs_uuid_t * nfs_uuid , * tmp ;
113
113
@@ -116,17 +116,17 @@ void nfs_uuid_invalidate_clients(struct list_head *list)
116
116
nfs_uuid_put_locked (nfs_uuid );
117
117
spin_unlock (& nfs_uuid_lock );
118
118
}
119
- EXPORT_SYMBOL_GPL (nfs_uuid_invalidate_clients );
119
+ EXPORT_SYMBOL_GPL (nfs_localio_invalidate_clients );
120
120
121
- void nfs_uuid_invalidate_one_client (nfs_uuid_t * nfs_uuid )
121
+ void nfs_localio_disable_client (nfs_uuid_t * nfs_uuid )
122
122
{
123
123
if (nfs_uuid -> net ) {
124
124
spin_lock (& nfs_uuid_lock );
125
125
nfs_uuid_put_locked (nfs_uuid );
126
126
spin_unlock (& nfs_uuid_lock );
127
127
}
128
128
}
129
- EXPORT_SYMBOL_GPL (nfs_uuid_invalidate_one_client );
129
+ EXPORT_SYMBOL_GPL (nfs_localio_disable_client );
130
130
131
131
struct nfsd_file * nfs_open_local_fh (nfs_uuid_t * uuid ,
132
132
struct rpc_clnt * rpc_clnt , const struct cred * cred ,
Original file line number Diff line number Diff line change @@ -2276,14 +2276,14 @@ static __net_init int nfsd_net_init(struct net *net)
2276
2276
* nfsd_net_pre_exit - Disconnect localio clients from net namespace
2277
2277
* @net: a network namespace that is about to be destroyed
2278
2278
*
2279
- * This invalidated ->net pointers held by localio clients
2279
+ * This invalidates ->net pointers held by localio clients
2280
2280
* while they can still safely access nn->counter.
2281
2281
*/
2282
2282
static __net_exit void nfsd_net_pre_exit (struct net * net )
2283
2283
{
2284
2284
struct nfsd_net * nn = net_generic (net , nfsd_net_id );
2285
2285
2286
- nfs_uuid_invalidate_clients (& nn -> local_clients );
2286
+ nfs_localio_invalidate_clients (& nn -> local_clients );
2287
2287
}
2288
2288
#endif
2289
2289
Original file line number Diff line number Diff line change @@ -37,8 +37,9 @@ bool nfs_uuid_begin(nfs_uuid_t *);
37
37
void nfs_uuid_end (nfs_uuid_t * );
38
38
void nfs_uuid_is_local (const uuid_t * , struct list_head * ,
39
39
struct net * , struct auth_domain * , struct module * );
40
- void nfs_uuid_invalidate_clients (struct list_head * list );
41
- void nfs_uuid_invalidate_one_client (nfs_uuid_t * nfs_uuid );
40
+
41
+ void nfs_localio_disable_client (nfs_uuid_t * nfs_uuid );
42
+ void nfs_localio_invalidate_clients (struct list_head * list );
42
43
43
44
/* localio needs to map filehandle -> struct nfsd_file */
44
45
extern struct nfsd_file *
You can’t perform that action at this time.
0 commit comments