• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/nfs/

Lines Matching refs:clp

113 	struct nfs_client *clp = NFS_SERVER(inode)->nfs_client;
133 spin_lock(&clp->cl_lock);
135 list_add(&delegation->super_list, &clp->cl_delegations);
144 __FUNCTION__, NIPQUAD(clp->cl_addr.sin_addr));
148 spin_unlock(&clp->cl_lock);
175 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client;
181 down_read(&clp->cl_sem);
184 spin_lock(&clp->cl_lock);
191 spin_unlock(&clp->cl_lock);
194 up_read(&clp->cl_sem);
207 struct nfs_client *clp = NFS_SB(sb)->nfs_client;
211 if (clp == NULL)
214 spin_lock(&clp->cl_lock);
215 list_for_each_entry(delegation, &clp->cl_delegations, super_list) {
221 spin_unlock(&clp->cl_lock);
226 spin_unlock(&clp->cl_lock);
231 struct nfs_client *clp = ptr;
237 spin_lock(&clp->cl_lock);
238 if (test_bit(NFS4CLNT_STATE_RECOVER, &clp->cl_state) != 0)
240 if (test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state) == 0)
242 list_for_each_entry(delegation, &clp->cl_delegations, super_list) {
246 spin_unlock(&clp->cl_lock);
252 spin_unlock(&clp->cl_lock);
253 nfs_put_client(clp);
257 void nfs_expire_all_delegations(struct nfs_client *clp)
262 atomic_inc(&clp->cl_count);
263 task = kthread_run(nfs_do_expire_all_delegations, clp,
265 NIPQUAD(clp->cl_addr.sin_addr));
268 nfs_put_client(clp);
275 void nfs_handle_cb_pathdown(struct nfs_client *clp)
280 if (clp == NULL)
283 spin_lock(&clp->cl_lock);
284 list_for_each_entry(delegation, &clp->cl_delegations, super_list) {
288 spin_unlock(&clp->cl_lock);
293 spin_unlock(&clp->cl_lock);
298 struct nfs_client *clp;
309 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client;
316 down_read(&clp->cl_sem);
318 spin_lock(&clp->cl_lock);
331 spin_unlock(&clp->cl_lock);
335 up_read(&clp->cl_sem);
370 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle)
374 spin_lock(&clp->cl_lock);
375 list_for_each_entry(delegation, &clp->cl_delegations, super_list) {
381 spin_unlock(&clp->cl_lock);
388 void nfs_delegation_mark_reclaim(struct nfs_client *clp)
391 spin_lock(&clp->cl_lock);
392 list_for_each_entry(delegation, &clp->cl_delegations, super_list)
394 spin_unlock(&clp->cl_lock);
400 void nfs_delegation_reap_unclaimed(struct nfs_client *clp)
404 spin_lock(&clp->cl_lock);
405 list_for_each_entry_safe(delegation, n, &clp->cl_delegations, super_list) {
412 spin_unlock(&clp->cl_lock);
422 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client;
429 spin_lock(&clp->cl_lock);
435 spin_unlock(&clp->cl_lock);