/kernel/linux/linux-5.10/fs/nfs/ |
D | io.c | 18 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 …]
|
D | inode.c | 162 struct nfs_inode *nfsi = NFS_I(inode); in nfs_attribute_timeout() local 164 …return !time_in_range_open(jiffies, nfsi->read_cache_jiffies, nfsi->read_cache_jiffies + nfsi->att… in nfs_attribute_timeout() 200 struct nfs_inode *nfsi = NFS_I(inode); in nfs_set_cache_invalid() local 215 nfsi->cache_validity |= flags; in nfs_set_cache_invalid() 225 struct nfs_inode *nfsi = NFS_I(inode); in nfs_zap_caches_locked() local 230 nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); in nfs_zap_caches_locked() 231 nfsi->attrtimeo_timestamp = jiffies; in nfs_zap_caches_locked() 247 nfs_zap_label_cache_locked(nfsi); in nfs_zap_caches_locked() 462 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fhget() local 472 nfsi->cache_validity = 0; in nfs_fhget() [all …]
|
D | fscache.c | 229 struct nfs_inode *nfsi) in nfs_fscache_update_auxdata() argument 232 auxdata->mtime_sec = nfsi->vfs_inode.i_mtime.tv_sec; in nfs_fscache_update_auxdata() 233 auxdata->mtime_nsec = nfsi->vfs_inode.i_mtime.tv_nsec; in nfs_fscache_update_auxdata() 234 auxdata->ctime_sec = nfsi->vfs_inode.i_ctime.tv_sec; in nfs_fscache_update_auxdata() 235 auxdata->ctime_nsec = nfsi->vfs_inode.i_ctime.tv_nsec; in nfs_fscache_update_auxdata() 237 if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_update_auxdata() 238 auxdata->change_attr = inode_peek_iversion_raw(&nfsi->vfs_inode); in nfs_fscache_update_auxdata() 248 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_init_inode() local 250 nfsi->fscache = NULL; in nfs_fscache_init_inode() 254 nfs_fscache_update_auxdata(&auxdata, nfsi); in nfs_fscache_init_inode() [all …]
|
D | fscache-index.c | 81 struct nfs_inode *nfsi = cookie_netfs_data; in nfs_fscache_inode_check_aux() local 87 auxdata.mtime_sec = nfsi->vfs_inode.i_mtime.tv_sec; in nfs_fscache_inode_check_aux() 88 auxdata.mtime_nsec = nfsi->vfs_inode.i_mtime.tv_nsec; in nfs_fscache_inode_check_aux() 89 auxdata.ctime_sec = nfsi->vfs_inode.i_ctime.tv_sec; in nfs_fscache_inode_check_aux() 90 auxdata.ctime_nsec = nfsi->vfs_inode.i_ctime.tv_nsec; in nfs_fscache_inode_check_aux() 92 if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_inode_check_aux() 93 auxdata.change_attr = inode_peek_iversion_raw(&nfsi->vfs_inode); in nfs_fscache_inode_check_aux()
|
D | nfstrace.h | 104 const struct nfs_inode *nfsi = NFS_I(inode); 106 __entry->fileid = nfsi->fileid; 107 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); 141 const struct nfs_inode *nfsi = NFS_I(inode); 144 __entry->fileid = nfsi->fileid; 145 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); 149 __entry->nfsi_flags = nfsi->flags; 150 __entry->cache_validity = nfsi->cache_validity; 229 const struct nfs_inode *nfsi = NFS_I(inode); 232 __entry->fileid = nfsi->fileid; [all …]
|
D | dir.c | 73 struct nfs_inode *nfsi = NFS_I(dir); in alloc_nfs_open_dir_context() local 78 ctx->attr_gencount = nfsi->attr_gencount; in alloc_nfs_open_dir_context() 83 if (list_empty(&nfsi->open_files) && in alloc_nfs_open_dir_context() 84 (nfsi->cache_validity & NFS_INO_DATA_INVAL_DEFER)) in alloc_nfs_open_dir_context() 85 nfsi->cache_validity |= NFS_INO_INVALID_DATA | in alloc_nfs_open_dir_context() 87 list_add(&ctx->list, &nfsi->open_files); in alloc_nfs_open_dir_context() 285 nfs_readdir_inode_mapping_valid(struct nfs_inode *nfsi) in nfs_readdir_inode_mapping_valid() argument 287 if (nfsi->cache_validity & (NFS_INO_INVALID_ATTR|NFS_INO_INVALID_DATA)) in nfs_readdir_inode_mapping_valid() 290 return !test_bit(NFS_INO_INVALIDATING, &nfsi->flags); in nfs_readdir_inode_mapping_valid() 302 struct nfs_inode *nfsi = NFS_I(file_inode(desc->file)); in nfs_readdir_search_for_cookie() local [all …]
|
D | delegation.c | 180 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_opens() local 189 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_delegation_claim_opens() 294 nfs_start_delegation_return_locked(struct nfs_inode *nfsi) in nfs_start_delegation_return_locked() argument 297 struct nfs_delegation *delegation = rcu_dereference(nfsi->delegation); in nfs_start_delegation_return_locked() 309 nfs_clear_verifier_delegated(&nfsi->vfs_inode); in nfs_start_delegation_return_locked() 315 nfs_start_delegation_return(struct nfs_inode *nfsi) in nfs_start_delegation_return() argument 320 delegation = nfs_start_delegation_return_locked(nfsi); in nfs_start_delegation_return() 339 nfs_detach_delegation_locked(struct nfs_inode *nfsi, in nfs_detach_delegation_locked() argument 344 rcu_dereference_protected(nfsi->delegation, in nfs_detach_delegation_locked() 357 rcu_assign_pointer(nfsi->delegation, NULL); in nfs_detach_delegation_locked() [all …]
|
D | pnfs.c | 285 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() 753 static struct pnfs_layout_hdr *__pnfs_destroy_layout(struct nfs_inode *nfsi) in __pnfs_destroy_layout() argument 758 spin_lock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() 759 lo = nfsi->layout; in __pnfs_destroy_layout() 765 spin_unlock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() 767 nfs_commit_inode(&nfsi->vfs_inode, 0); in __pnfs_destroy_layout() 770 spin_unlock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() [all …]
|
D | nfs42xattr.c | 346 struct nfs_inode *nfsi; in nfs4_xattr_cache_unlink() local 349 nfsi = NFS_I(inode); in nfs4_xattr_cache_unlink() 351 oldcache = nfsi->xattr_cache; in nfs4_xattr_cache_unlink() 356 nfsi->xattr_cache = NULL; in nfs4_xattr_cache_unlink() 357 nfsi->cache_validity &= ~NFS_INO_INVALID_XATTR; in nfs4_xattr_cache_unlink() 429 struct nfs_inode *nfsi; in nfs4_xattr_get_cache() local 432 nfsi = NFS_I(inode); in nfs4_xattr_get_cache() 438 if (nfsi->cache_validity & NFS_INO_INVALID_XATTR) in nfs4_xattr_get_cache() 441 cache = nfsi->xattr_cache; in nfs4_xattr_get_cache() 456 if (nfsi->cache_validity & NFS_INO_INVALID_XATTR) { in nfs4_xattr_get_cache() [all …]
|
D | fscache.h | 109 static inline void nfs_fscache_wait_on_page_write(struct nfs_inode *nfsi, in nfs_fscache_wait_on_page_write() argument 113 fscache_wait_on_page_write(nfsi->fscache, page); in nfs_fscache_wait_on_page_write() 212 static inline void nfs_fscache_wait_on_page_write(struct nfs_inode *nfsi, in nfs_fscache_wait_on_page_write() argument
|
D | write.c | 65 nfs_page_search_commits_for_head_request_locked(struct nfs_inode *nfsi, 214 struct nfs_inode *nfsi = NFS_I(inode); in nfs_page_find_swap_request() local 218 mutex_lock(&nfsi->commit_mutex); in nfs_page_find_swap_request() 220 req = nfs_page_search_commits_for_head_request_locked(nfsi, in nfs_page_find_swap_request() 227 mutex_unlock(&nfsi->commit_mutex); in nfs_page_find_swap_request() 748 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_add_request() local 769 atomic_long_inc(&nfsi->nrequests); in nfs_inode_add_request() 785 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_remove_request() local 802 atomic_long_dec(&nfsi->nrequests); in nfs_inode_remove_request() 822 nfs_page_search_commits_for_head_request_locked(struct nfs_inode *nfsi, in nfs_page_search_commits_for_head_request_locked() argument [all …]
|
D | pnfs.h | 595 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_layoutcommit_outstanding() local 597 return test_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags) != 0 || in pnfs_layoutcommit_outstanding() 598 test_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags) != 0; in pnfs_layoutcommit_outstanding() 603 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_return_layout() local 606 if (pnfs_enabled_sb(nfss) && nfsi->layout) { in pnfs_return_layout() 607 set_bit(NFS_LAYOUT_RETURN_REQUESTED, &nfsi->layout->plh_flags); in pnfs_return_layout() 708 static inline void pnfs_destroy_layout(struct nfs_inode *nfsi) in pnfs_destroy_layout() argument 712 static inline void pnfs_destroy_layout_final(struct nfs_inode *nfsi) in pnfs_destroy_layout_final() argument
|
D | internal.h | 356 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument 358 if (nfs_server_capable(&nfsi->vfs_inode, NFS_CAP_SECURITY_LABEL)) in nfs_zap_label_cache_locked() 359 nfsi->cache_validity |= NFS_INO_INVALID_LABEL; in nfs_zap_label_cache_locked() 364 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument 445 static inline bool nfs_file_io_is_buffered(struct nfs_inode *nfsi) in nfs_file_io_is_buffered() argument 447 return test_bit(NFS_INO_ODIRECT, &nfsi->flags) == 0; in nfs_file_io_is_buffered()
|
D | file.c | 441 struct nfs_inode *nfsi; in nfs_check_dirty_writeback() local 452 nfsi = NFS_I(mapping->host); in nfs_check_dirty_writeback() 453 if (atomic_read(&nfsi->commit_info.rpcs_out)) { in nfs_check_dirty_writeback() 478 struct nfs_inode *nfsi = NFS_I(inode); in nfs_launder_page() local 483 nfs_fscache_wait_on_page_write(nfsi, page); in nfs_launder_page()
|
D | callback_proc.c | 162 struct nfs_inode *nfsi; in nfs_layout_find_inode_by_fh() local 169 nfsi = NFS_I(lo->plh_inode); in nfs_layout_find_inode_by_fh() 170 if (nfs_compare_fh(fh, &nfsi->fh)) in nfs_layout_find_inode_by_fh() 172 if (nfsi->layout != lo) in nfs_layout_find_inode_by_fh()
|
D | nfs4state.c | 698 struct nfs_inode *nfsi = NFS_I(inode); in __nfs4_find_state_byowner() local 701 list_for_each_entry_rcu(state, &nfsi->open_states, inode_states) { in __nfs4_find_state_byowner() 722 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_get_open_state() local 739 list_add_rcu(&state->inode_states, &nfsi->open_states); in nfs4_get_open_state() 1434 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_find_state_and_recover() local 1440 list_for_each_entry_rcu(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_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_mark_open_context_bad() 1493 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_reclaim_locks() local 1506 down_write(&nfsi->rwsem); in nfs4_reclaim_locks() [all …]
|
D | nfs4trace.h | 1762 const struct nfs_inode *nfsi = NFS_I(inode); 1764 hdr->args.fh : &nfsi->fh; 1770 __entry->fileid = nfsi->fileid; 1836 const struct nfs_inode *nfsi = NFS_I(inode); 1838 hdr->args.fh : &nfsi->fh; 1844 __entry->fileid = nfsi->fileid; 1908 const struct nfs_inode *nfsi = NFS_I(inode); 1910 data->args.fh : &nfsi->fh; 1914 __entry->fileid = nfsi->fileid;
|
D | nfs4proc.c | 1195 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_update_changeattr_locked() local 1197 nfsi->cache_validity |= NFS_INO_INVALID_CTIME in nfs4_update_changeattr_locked() 1202 nfsi->cache_validity &= ~NFS_INO_REVAL_PAGECACHE; in nfs4_update_changeattr_locked() 1203 nfsi->attrtimeo_timestamp = jiffies; in nfs4_update_changeattr_locked() 1206 nfsi->cache_validity |= NFS_INO_INVALID_DATA; in nfs4_update_changeattr_locked() 1211 nfsi->cache_validity |= NFS_INO_REVAL_PAGECACHE; in nfs4_update_changeattr_locked() 1215 nfsi->cache_validity |= NFS_INO_INVALID_ACCESS | in nfs4_update_changeattr_locked() 1220 nfsi->read_cache_jiffies = timestamp; in nfs4_update_changeattr_locked() 1221 nfsi->attr_gencount = nfs_inc_attr_generation_counter(); in nfs4_update_changeattr_locked() 1222 nfsi->cache_validity &= ~NFS_INO_INVALID_CHANGE; in nfs4_update_changeattr_locked() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | nfs_fs.h | 334 struct nfs_inode *nfsi = NFS_I(inode); in nfs_mark_for_revalidate() local 337 nfsi->cache_validity |= NFS_INO_REVAL_PAGECACHE in nfs_mark_for_revalidate() 343 nfsi->cache_validity |= NFS_INO_INVALID_DATA; in nfs_mark_for_revalidate()
|
/kernel/linux/linux-5.10/Documentation/filesystems/nfs/ |
D | pnfs.rst | 18 segments in nfsi->layout, of type struct pnfs_layout_hdr.
|