Home
last modified time | relevance | path

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

/Linux-v4.19/fs/nfs/
Dio.c18 static void nfs_block_o_direct(struct nfs_inode *nfsi, struct inode *inode) in nfs_block_o_direct() argument
20 if (test_bit(NFS_INO_ODIRECT, &nfsi->flags)) { in nfs_block_o_direct()
21 clear_bit(NFS_INO_ODIRECT, &nfsi->flags); in nfs_block_o_direct()
45 struct nfs_inode *nfsi = NFS_I(inode); in nfs_start_io_read() local
48 if (test_bit(NFS_INO_ODIRECT, &nfsi->flags) == 0) in nfs_start_io_read()
53 nfs_block_o_direct(nfsi, inode); in nfs_start_io_read()
98 static void nfs_block_buffered(struct nfs_inode *nfsi, struct inode *inode) in nfs_block_buffered() argument
100 if (!test_bit(NFS_INO_ODIRECT, &nfsi->flags)) { in nfs_block_buffered()
101 set_bit(NFS_INO_ODIRECT, &nfsi->flags); in nfs_block_buffered()
125 struct nfs_inode *nfsi = NFS_I(inode); in nfs_start_io_direct() local
[all …]
Dinode.c160 struct nfs_inode *nfsi = NFS_I(inode); in nfs_attribute_timeout() local
162 …return !time_in_range_open(jiffies, nfsi->read_cache_jiffies, nfsi->read_cache_jiffies + nfsi->att… in nfs_attribute_timeout()
197 struct nfs_inode *nfsi = NFS_I(inode); in nfs_set_cache_invalid() local
210 nfsi->cache_validity |= flags; in nfs_set_cache_invalid()
220 struct nfs_inode *nfsi = NFS_I(inode); in nfs_zap_caches_locked() local
225 nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); in nfs_zap_caches_locked()
226 nfsi->attrtimeo_timestamp = jiffies; in nfs_zap_caches_locked()
240 nfs_zap_label_cache_locked(nfsi); in nfs_zap_caches_locked()
447 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fhget() local
457 nfsi->cache_validity = 0; in nfs_fhget()
[all …]
Dfscache.c233 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_init_inode() local
235 nfsi->fscache = NULL; in nfs_fscache_init_inode()
240 auxdata.mtime = timespec64_to_timespec(nfsi->vfs_inode.i_mtime); in nfs_fscache_init_inode()
241 auxdata.ctime = timespec64_to_timespec(nfsi->vfs_inode.i_ctime); in nfs_fscache_init_inode()
243 if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_init_inode()
244 auxdata.change_attr = inode_peek_iversion_raw(&nfsi->vfs_inode); in nfs_fscache_init_inode()
246 nfsi->fscache = fscache_acquire_cookie(NFS_SB(inode->i_sb)->fscache, in nfs_fscache_init_inode()
248 nfsi->fh.data, nfsi->fh.size, in nfs_fscache_init_inode()
250 nfsi, nfsi->vfs_inode.i_size, false); in nfs_fscache_init_inode()
259 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_clear_inode() local
[all …]
Dfscache-index.c85 struct nfs_inode *nfsi = cookie_netfs_data; in nfs_fscache_inode_check_aux() local
91 auxdata.mtime = timespec64_to_timespec(nfsi->vfs_inode.i_mtime); in nfs_fscache_inode_check_aux()
92 auxdata.ctime = timespec64_to_timespec(nfsi->vfs_inode.i_ctime); in nfs_fscache_inode_check_aux()
94 if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_inode_check_aux()
95 auxdata.change_attr = inode_peek_iversion_raw(&nfsi->vfs_inode); in nfs_fscache_inode_check_aux()
Ddelegation.c131 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_opens() local
140 list_for_each_entry(ctx, &nfsi->open_files, list) { in nfs_delegation_claim_opens()
238 nfs_start_delegation_return_locked(struct nfs_inode *nfsi) in nfs_start_delegation_return_locked() argument
241 struct nfs_delegation *delegation = rcu_dereference(nfsi->delegation); in nfs_start_delegation_return_locked()
254 nfs_start_delegation_return(struct nfs_inode *nfsi) in nfs_start_delegation_return() argument
259 delegation = nfs_start_delegation_return_locked(nfsi); in nfs_start_delegation_return()
277 nfs_detach_delegation_locked(struct nfs_inode *nfsi, in nfs_detach_delegation_locked() argument
282 rcu_dereference_protected(nfsi->delegation, in nfs_detach_delegation_locked()
292 rcu_assign_pointer(nfsi->delegation, NULL); in nfs_detach_delegation_locked()
297 static struct nfs_delegation *nfs_detach_delegation(struct nfs_inode *nfsi, in nfs_detach_delegation() argument
[all …]
Dnfstrace.h61 const struct nfs_inode *nfsi = NFS_I(inode);
63 __entry->fileid = nfsi->fileid;
64 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
98 const struct nfs_inode *nfsi = NFS_I(inode);
101 __entry->fileid = nfsi->fileid;
102 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
106 __entry->nfsi_flags = nfsi->flags;
107 __entry->cache_validity = nfsi->cache_validity;
742 const struct nfs_inode *nfsi = NFS_I(inode);
747 __entry->fileid = nfsi->fileid;
[all …]
Ddir.c72 struct nfs_inode *nfsi = NFS_I(dir); in alloc_nfs_open_dir_context() local
77 ctx->attr_gencount = nfsi->attr_gencount; in alloc_nfs_open_dir_context()
82 list_add(&ctx->list, &nfsi->open_files); in alloc_nfs_open_dir_context()
254 nfs_readdir_inode_mapping_valid(struct nfs_inode *nfsi) in nfs_readdir_inode_mapping_valid() argument
256 if (nfsi->cache_validity & (NFS_INO_INVALID_ATTR|NFS_INO_INVALID_DATA)) in nfs_readdir_inode_mapping_valid()
259 return !test_bit(NFS_INO_INVALIDATING, &nfsi->flags); in nfs_readdir_inode_mapping_valid()
271 struct nfs_inode *nfsi = NFS_I(file_inode(desc->file)); in nfs_readdir_search_for_cookie() local
275 if (ctx->attr_gencount != nfsi->attr_gencount || in nfs_readdir_search_for_cookie()
276 !nfs_readdir_inode_mapping_valid(nfsi)) { in nfs_readdir_search_for_cookie()
278 ctx->attr_gencount = nfsi->attr_gencount; in nfs_readdir_search_for_cookie()
[all …]
Dpnfs.c285 struct nfs_inode *nfsi = NFS_I(lo->plh_inode); in pnfs_detach_layout_hdr() local
287 nfsi->layout = NULL; in pnfs_detach_layout_hdr()
289 nfsi->write_io = 0; in pnfs_detach_layout_hdr()
290 nfsi->read_io = 0; in pnfs_detach_layout_hdr()
717 pnfs_destroy_layout(struct nfs_inode *nfsi) in pnfs_destroy_layout() argument
722 spin_lock(&nfsi->vfs_inode.i_lock); in pnfs_destroy_layout()
723 lo = nfsi->layout; in pnfs_destroy_layout()
729 spin_unlock(&nfsi->vfs_inode.i_lock); in pnfs_destroy_layout()
731 nfs_commit_inode(&nfsi->vfs_inode, 0); in pnfs_destroy_layout()
734 spin_unlock(&nfsi->vfs_inode.i_lock); in pnfs_destroy_layout()
[all …]
Dfscache.h111 static inline void nfs_fscache_wait_on_page_write(struct nfs_inode *nfsi, in nfs_fscache_wait_on_page_write() argument
115 fscache_wait_on_page_write(nfsi->fscache, page); in nfs_fscache_wait_on_page_write()
214 static inline void nfs_fscache_wait_on_page_write(struct nfs_inode *nfsi, in nfs_fscache_wait_on_page_write() argument
Dwrite.c62 nfs_page_search_commits_for_head_request_locked(struct nfs_inode *nfsi,
186 struct nfs_inode *nfsi = NFS_I(inode); in nfs_page_find_swap_request() local
190 mutex_lock(&nfsi->commit_mutex); in nfs_page_find_swap_request()
192 req = nfs_page_search_commits_for_head_request_locked(nfsi, in nfs_page_find_swap_request()
199 mutex_unlock(&nfsi->commit_mutex); in nfs_page_find_swap_request()
745 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_add_request() local
766 atomic_long_inc(&nfsi->nrequests); in nfs_inode_add_request()
782 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_remove_request() local
785 atomic_long_dec(&nfsi->nrequests); in nfs_inode_remove_request()
818 nfs_page_search_commits_for_head_request_locked(struct nfs_inode *nfsi, in nfs_page_search_commits_for_head_request_locked() argument
[all …]
Dcallback_proc.c29 struct nfs_inode *nfsi; in nfs4_callback_getattr() local
50 nfsi = NFS_I(inode); in nfs4_callback_getattr()
52 delegation = rcu_dereference(nfsi->delegation); in nfs4_callback_getattr()
164 struct nfs_inode *nfsi; in nfs_layout_find_inode_by_fh() local
170 nfsi = NFS_I(lo->plh_inode); in nfs_layout_find_inode_by_fh()
171 if (nfs_compare_fh(fh, &nfsi->fh)) in nfs_layout_find_inode_by_fh()
173 if (nfsi->layout != lo) in nfs_layout_find_inode_by_fh()
Dpnfs.h530 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_layoutcommit_outstanding() local
532 return test_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags) != 0 || in pnfs_layoutcommit_outstanding()
533 test_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags) != 0; in pnfs_layoutcommit_outstanding()
538 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_return_layout() local
541 if (pnfs_enabled_sb(nfss) && nfsi->layout) { in pnfs_return_layout()
542 set_bit(NFS_LAYOUT_RETURN_REQUESTED, &nfsi->layout->plh_flags); in pnfs_return_layout()
643 static inline void pnfs_destroy_layout(struct nfs_inode *nfsi) in pnfs_destroy_layout() argument
Dinternal.h328 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument
330 if (nfs_server_capable(&nfsi->vfs_inode, NFS_CAP_SECURITY_LABEL)) in nfs_zap_label_cache_locked()
331 nfsi->cache_validity |= NFS_INO_INVALID_LABEL; in nfs_zap_label_cache_locked()
336 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument
429 static inline bool nfs_file_io_is_buffered(struct nfs_inode *nfsi) in nfs_file_io_is_buffered() argument
431 return test_bit(NFS_INO_ODIRECT, &nfsi->flags) == 0; in nfs_file_io_is_buffered()
Dfile.c446 struct nfs_inode *nfsi; in nfs_check_dirty_writeback() local
457 nfsi = NFS_I(mapping->host); in nfs_check_dirty_writeback()
458 if (atomic_read(&nfsi->commit_info.rpcs_out)) { in nfs_check_dirty_writeback()
483 struct nfs_inode *nfsi = NFS_I(inode); in nfs_launder_page() local
488 nfs_fscache_wait_on_page_write(nfsi, page); in nfs_launder_page()
Dnfs4state.c684 struct nfs_inode *nfsi = NFS_I(inode); in __nfs4_find_state_byowner() local
687 list_for_each_entry(state, &nfsi->open_states, inode_states) { in __nfs4_find_state_byowner()
708 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_get_open_state() local
723 list_add(&state->inode_states, &nfsi->open_states); in nfs4_get_open_state()
1435 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_find_state_and_recover() local
1441 list_for_each_entry(ctx, &nfsi->open_files, list) { in nfs_inode_find_state_and_recover()
1469 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_state_mark_open_context_bad() local
1473 list_for_each_entry(ctx, &nfsi->open_files, list) { in nfs4_state_mark_open_context_bad()
1491 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_reclaim_locks() local
1504 down_write(&nfsi->rwsem); in nfs4_reclaim_locks()
[all …]
Dnfs4proc.c1102 struct nfs_inode *nfsi = NFS_I(dir); in update_changeattr_locked() local
1104 nfsi->cache_validity |= NFS_INO_INVALID_CTIME in update_changeattr_locked()
1109 nfsi->cache_validity &= ~NFS_INO_REVAL_PAGECACHE; in update_changeattr_locked()
1110 nfsi->attrtimeo_timestamp = jiffies; in update_changeattr_locked()
1114 nfsi->cache_validity |= NFS_INO_INVALID_ACCESS | in update_changeattr_locked()
1118 nfsi->read_cache_jiffies = timestamp; in update_changeattr_locked()
1119 nfsi->attr_gencount = nfs_inc_attr_generation_counter(); in update_changeattr_locked()
1120 nfsi->cache_validity &= ~NFS_INO_INVALID_CHANGE; in update_changeattr_locked()
1655 struct nfs_inode *nfsi = NFS_I(state->inode); in update_open_stateid() local
1669 deleg_cur = rcu_dereference(nfsi->delegation); in update_open_stateid()
[all …]
/Linux-v4.19/include/linux/
Dnfs_fs.h313 struct nfs_inode *nfsi = NFS_I(inode); in nfs_mark_for_revalidate() local
316 nfsi->cache_validity |= NFS_INO_REVAL_PAGECACHE in nfs_mark_for_revalidate()
322 nfsi->cache_validity |= NFS_INO_INVALID_DATA; in nfs_mark_for_revalidate()
/Linux-v4.19/Documentation/filesystems/nfs/
Dpnfs.txt16 segments in nfsi->layout, of type struct pnfs_layout_hdr.