Home
last modified time | relevance | path

Searched refs:nfsi (Results 1 – 11 of 11) sorted by relevance

/fs/nfs/
Dinode.c137 struct nfs_inode *nfsi = NFS_I(inode); in nfs_zap_caches_locked() local
142 nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); in nfs_zap_caches_locked()
143 nfsi->attrtimeo_timestamp = jiffies; in nfs_zap_caches_locked()
147nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_DATA|NFS_INO_INVALID_ACCESS|NFS_INO_I… in nfs_zap_caches_locked()
149nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_ACCESS|NFS_INO_INVALID_ACL|NFS_INO_RE… in nfs_zap_caches_locked()
269 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fhget() local
300 set_bit(NFS_INO_MOUNTPOINT, &nfsi->flags); in nfs_fhget()
307 nfsi->read_cache_jiffies = fattr->time_start; in nfs_fhget()
308 nfsi->attr_gencount = fattr->gencount; in nfs_fhget()
313 nfsi->change_attr = fattr->change_attr; in nfs_fhget()
[all …]
Ddelegation.c99 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_opens() local
106 list_for_each_entry(ctx, &nfsi->open_files, list) { in nfs_delegation_claim_opens()
169 static struct nfs_delegation *nfs_detach_delegation_locked(struct nfs_inode *nfsi, const nfs4_state… in nfs_detach_delegation_locked() argument
171 struct nfs_delegation *delegation = rcu_dereference(nfsi->delegation); in nfs_detach_delegation_locked()
181 nfsi->delegation_state = 0; in nfs_detach_delegation_locked()
182 rcu_assign_pointer(nfsi->delegation, NULL); in nfs_detach_delegation_locked()
197 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_set_delegation() local
209 delegation->change_attr = nfsi->change_attr; in nfs_inode_set_delegation()
216 if (rcu_dereference(nfsi->delegation) != NULL) { in nfs_inode_set_delegation()
217 if (memcmp(&delegation->stateid, &nfsi->delegation->stateid, in nfs_inode_set_delegation()
[all …]
Dunlink.c68 struct nfs_inode *nfsi = NFS_I(dir); in nfs_dec_sillycount() local
69 if (atomic_dec_return(&nfsi->silly_count) == 1) in nfs_dec_sillycount()
70 wake_up(&nfsi->waitqueue); in nfs_dec_sillycount()
198 struct nfs_inode *nfsi = NFS_I(dentry->d_inode); in nfs_block_sillyrename() local
200 wait_event(nfsi->waitqueue, atomic_cmpxchg(&nfsi->silly_count, 1, 0) == 1); in nfs_block_sillyrename()
206 struct nfs_inode *nfsi = NFS_I(dir); in nfs_unblock_sillyrename() local
209 atomic_inc(&nfsi->silly_count); in nfs_unblock_sillyrename()
211 while (!hlist_empty(&nfsi->silly_list)) { in nfs_unblock_sillyrename()
212 if (!atomic_inc_not_zero(&nfsi->silly_count)) in nfs_unblock_sillyrename()
214 data = hlist_entry(nfsi->silly_list.first, struct nfs_unlinkdata, list); in nfs_unblock_sillyrename()
Dcallback_proc.c23 struct nfs_inode *nfsi; in nfs4_callback_getattr() local
38 nfsi = NFS_I(inode); in nfs4_callback_getattr()
39 down_read(&nfsi->rwsem); in nfs4_callback_getattr()
40 delegation = nfsi->delegation; in nfs4_callback_getattr()
45 if (nfsi->npages != 0) in nfs4_callback_getattr()
55 up_read(&nfsi->rwsem); in nfs4_callback_getattr()
Dnfs3acl.c118 static void __nfs3_forget_cached_acls(struct nfs_inode *nfsi) in __nfs3_forget_cached_acls() argument
120 if (!IS_ERR(nfsi->acl_access)) { in __nfs3_forget_cached_acls()
121 posix_acl_release(nfsi->acl_access); in __nfs3_forget_cached_acls()
122 nfsi->acl_access = ERR_PTR(-EAGAIN); in __nfs3_forget_cached_acls()
124 if (!IS_ERR(nfsi->acl_default)) { in __nfs3_forget_cached_acls()
125 posix_acl_release(nfsi->acl_default); in __nfs3_forget_cached_acls()
126 nfsi->acl_default = ERR_PTR(-EAGAIN); in __nfs3_forget_cached_acls()
141 struct nfs_inode *nfsi = NFS_I(inode); in nfs3_get_cached_acl() local
147 acl = nfsi->acl_access; in nfs3_get_cached_acl()
151 acl = nfsi->acl_default; in nfs3_get_cached_acl()
[all …]
Dpagelist.c115 struct nfs_inode *nfsi = NFS_I(req->wb_context->path.dentry->d_inode); in nfs_set_page_tag_locked() local
120 radix_tree_tag_set(&nfsi->nfs_page_tree, req->wb_index, NFS_PAGE_TAG_LOCKED); in nfs_set_page_tag_locked()
130 struct nfs_inode *nfsi = NFS_I(inode); in nfs_clear_page_tag_locked() local
134 radix_tree_tag_clear(&nfsi->nfs_page_tree, req->wb_index, NFS_PAGE_TAG_LOCKED); in nfs_clear_page_tag_locked()
389 int nfs_scan_list(struct nfs_inode *nfsi, in nfs_scan_list() argument
406 found = radix_tree_gang_lookup_tag(&nfsi->nfs_page_tree, in nfs_scan_list()
419 radix_tree_tag_clear(&nfsi->nfs_page_tree, in nfs_scan_list()
428 cond_resched_lock(&nfsi->vfs_inode.i_lock); in nfs_scan_list()
Dwrite.c336 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_add_request() local
347 error = radix_tree_insert(&nfsi->nfs_page_tree, req->wb_index, req); in nfs_inode_add_request()
349 if (!nfsi->npages) { in nfs_inode_add_request()
352 nfsi->change_attr++; in nfs_inode_add_request()
356 nfsi->npages++; in nfs_inode_add_request()
358 radix_tree_tag_set(&nfsi->nfs_page_tree, req->wb_index, in nfs_inode_add_request()
372 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_remove_request() local
379 radix_tree_delete(&nfsi->nfs_page_tree, req->wb_index); in nfs_inode_remove_request()
380 nfsi->npages--; in nfs_inode_remove_request()
381 if (!nfsi->npages) { in nfs_inode_remove_request()
[all …]
Ddir.c1681 struct nfs_inode *nfsi; in nfs_access_cache_shrinker() local
1686 list_for_each_entry(nfsi, &nfs_access_lru_list, access_cache_inode_lru) { in nfs_access_cache_shrinker()
1692 s_umount = &nfsi->vfs_inode.i_sb->s_umount; in nfs_access_cache_shrinker()
1695 inode = igrab(&nfsi->vfs_inode); in nfs_access_cache_shrinker()
1701 if (list_empty(&nfsi->access_cache_entry_lru)) in nfs_access_cache_shrinker()
1703 cache = list_entry(nfsi->access_cache_entry_lru.next, in nfs_access_cache_shrinker()
1706 rb_erase(&cache->rb_node, &nfsi->access_cache); in nfs_access_cache_shrinker()
1707 if (!list_empty(&nfsi->access_cache_entry_lru)) in nfs_access_cache_shrinker()
1708 list_move_tail(&nfsi->access_cache_inode_lru, in nfs_access_cache_shrinker()
1712 list_del_init(&nfsi->access_cache_inode_lru); in nfs_access_cache_shrinker()
[all …]
Dnfs4state.c383 struct nfs_inode *nfsi = NFS_I(inode); in __nfs4_find_state_byowner() local
386 list_for_each_entry(state, &nfsi->open_states, inode_states) { in __nfs4_find_state_byowner()
405 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_get_open_state() local
420 list_add(&state->inode_states, &nfsi->open_states); in nfs4_get_open_state()
840 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_reclaim_locks() local
844 down_write(&nfsi->rwsem); in nfs4_reclaim_locks()
867 up_write(&nfsi->rwsem); in nfs4_reclaim_locks()
870 up_write(&nfsi->rwsem); in nfs4_reclaim_locks()
Dnfs4proc.c284 struct nfs_inode *nfsi = NFS_I(dir); in update_changeattr() local
287 nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA; in update_changeattr()
288 if (!cinfo->atomic || cinfo->before != nfsi->change_attr) in update_changeattr()
290 nfsi->change_attr = cinfo->after; in update_changeattr()
493 struct nfs_inode *nfsi = NFS_I(state->inode); in update_open_stateid() local
500 deleg_cur = rcu_dereference(nfsi->delegation); in update_open_stateid()
505 if (nfsi->delegation != deleg_cur || in update_open_stateid()
548 struct nfs_inode *nfsi = NFS_I(state->inode); in nfs4_try_open_cached() local
566 delegation = rcu_dereference(nfsi->delegation); in nfs4_try_open_cached()
645 struct nfs_inode *nfsi = NFS_I(state->inode); in nfs4_state_find_open_context() local
[all …]
Dfile.c165 struct nfs_inode *nfsi = NFS_I(inode); in nfs_revalidate_file_size() local
171 if (nfsi->npages != 0) in nfs_revalidate_file_size()
173 if (!(nfsi->cache_validity & NFS_INO_REVAL_PAGECACHE) && !nfs_attribute_timeout(inode)) in nfs_revalidate_file_size()