/fs/nfs/ |
D | inode.c | 163 struct nfs_inode *nfsi = NFS_I(inode); in nfs_attribute_timeout() local 165 …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 213 nfsi->cache_validity |= flags; in nfs_set_cache_invalid() 223 struct nfs_inode *nfsi = NFS_I(inode); in nfs_zap_caches_locked() local 228 nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); in nfs_zap_caches_locked() 229 nfsi->attrtimeo_timestamp = jiffies; in nfs_zap_caches_locked() 243 nfs_zap_label_cache_locked(nfsi); in nfs_zap_caches_locked() 450 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fhget() local 460 nfsi->cache_validity = 0; in nfs_fhget() [all …]
|
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 | fscache.c | 234 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_init_inode() local 236 nfsi->fscache = NULL; in nfs_fscache_init_inode() 241 auxdata.mtime = timespec64_to_timespec(nfsi->vfs_inode.i_mtime); in nfs_fscache_init_inode() 242 auxdata.ctime = timespec64_to_timespec(nfsi->vfs_inode.i_ctime); in nfs_fscache_init_inode() 244 if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_init_inode() 245 auxdata.change_attr = inode_peek_iversion_raw(&nfsi->vfs_inode); in nfs_fscache_init_inode() 247 nfsi->fscache = fscache_acquire_cookie(NFS_SB(inode->i_sb)->fscache, in nfs_fscache_init_inode() 249 nfsi->fh.data, nfsi->fh.size, in nfs_fscache_init_inode() 251 nfsi, nfsi->vfs_inode.i_size, false); in nfs_fscache_init_inode() 260 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_clear_inode() local [all …]
|
D | delegation.c | 140 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_opens() local 149 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_delegation_claim_opens() 250 nfs_start_delegation_return_locked(struct nfs_inode *nfsi) in nfs_start_delegation_return_locked() argument 253 struct nfs_delegation *delegation = rcu_dereference(nfsi->delegation); in nfs_start_delegation_return_locked() 266 nfs_start_delegation_return(struct nfs_inode *nfsi) in nfs_start_delegation_return() argument 271 delegation = nfs_start_delegation_return_locked(nfsi); in nfs_start_delegation_return() 289 nfs_detach_delegation_locked(struct nfs_inode *nfsi, in nfs_detach_delegation_locked() argument 294 rcu_dereference_protected(nfsi->delegation, in nfs_detach_delegation_locked() 304 rcu_assign_pointer(nfsi->delegation, NULL); in nfs_detach_delegation_locked() 309 static struct nfs_delegation *nfs_detach_delegation(struct nfs_inode *nfsi, in nfs_detach_delegation() argument [all …]
|
D | fscache-index.c | 81 struct nfs_inode *nfsi = cookie_netfs_data; in nfs_fscache_inode_check_aux() local 87 auxdata.mtime = timespec64_to_timespec(nfsi->vfs_inode.i_mtime); in nfs_fscache_inode_check_aux() 88 auxdata.ctime = timespec64_to_timespec(nfsi->vfs_inode.i_ctime); in nfs_fscache_inode_check_aux() 90 if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_inode_check_aux() 91 auxdata.change_attr = inode_peek_iversion_raw(&nfsi->vfs_inode); in nfs_fscache_inode_check_aux()
|
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() 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 [all …]
|
D | nfstrace.h | 103 const struct nfs_inode *nfsi = NFS_I(inode); 105 __entry->fileid = nfsi->fileid; 106 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); 140 const struct nfs_inode *nfsi = NFS_I(inode); 143 __entry->fileid = nfsi->fileid; 144 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); 148 __entry->nfsi_flags = nfsi->flags; 149 __entry->cache_validity = nfsi->cache_validity; 838 const struct nfs_inode *nfsi = NFS_I(inode); 843 __entry->fileid = nfsi->fileid; [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() 727 pnfs_destroy_layout(struct nfs_inode *nfsi) in pnfs_destroy_layout() argument 732 spin_lock(&nfsi->vfs_inode.i_lock); in pnfs_destroy_layout() 733 lo = nfsi->layout; in pnfs_destroy_layout() 739 spin_unlock(&nfsi->vfs_inode.i_lock); in pnfs_destroy_layout() 741 nfs_commit_inode(&nfsi->vfs_inode, 0); in pnfs_destroy_layout() 744 spin_unlock(&nfsi->vfs_inode.i_lock); in pnfs_destroy_layout() [all …]
|
D | write.c | 65 nfs_page_search_commits_for_head_request_locked(struct nfs_inode *nfsi, 189 struct nfs_inode *nfsi = NFS_I(inode); in nfs_page_find_swap_request() local 193 mutex_lock(&nfsi->commit_mutex); in nfs_page_find_swap_request() 195 req = nfs_page_search_commits_for_head_request_locked(nfsi, in nfs_page_find_swap_request() 202 mutex_unlock(&nfsi->commit_mutex); in nfs_page_find_swap_request() 749 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_add_request() local 770 atomic_long_inc(&nfsi->nrequests); in nfs_inode_add_request() 786 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_remove_request() local 803 atomic_long_dec(&nfsi->nrequests); in nfs_inode_remove_request() 823 nfs_page_search_commits_for_head_request_locked(struct nfs_inode *nfsi, in nfs_page_search_commits_for_head_request_locked() argument [all …]
|
D | fscache.h | 107 static inline void nfs_fscache_wait_on_page_write(struct nfs_inode *nfsi, in nfs_fscache_wait_on_page_write() argument 111 fscache_wait_on_page_write(nfsi->fscache, page); in nfs_fscache_wait_on_page_write() 210 static inline void nfs_fscache_wait_on_page_write(struct nfs_inode *nfsi, in nfs_fscache_wait_on_page_write() argument
|
D | callback_proc.c | 29 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()
|
D | pnfs.h | 537 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_layoutcommit_outstanding() local 539 return test_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags) != 0 || in pnfs_layoutcommit_outstanding() 540 test_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags) != 0; in pnfs_layoutcommit_outstanding() 545 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_return_layout() local 548 if (pnfs_enabled_sb(nfss) && nfsi->layout) { in pnfs_return_layout() 549 set_bit(NFS_LAYOUT_RETURN_REQUESTED, &nfsi->layout->plh_flags); in pnfs_return_layout() 650 static inline void pnfs_destroy_layout(struct nfs_inode *nfsi) in pnfs_destroy_layout() argument
|
D | internal.h | 323 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument 325 if (nfs_server_capable(&nfsi->vfs_inode, NFS_CAP_SECURITY_LABEL)) in nfs_zap_label_cache_locked() 326 nfsi->cache_validity |= NFS_INO_INVALID_LABEL; in nfs_zap_label_cache_locked() 331 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument 423 static inline bool nfs_file_io_is_buffered(struct nfs_inode *nfsi) in nfs_file_io_is_buffered() argument 425 return test_bit(NFS_INO_ODIRECT, &nfsi->flags) == 0; in nfs_file_io_is_buffered()
|
D | file.c | 443 struct nfs_inode *nfsi; in nfs_check_dirty_writeback() local 454 nfsi = NFS_I(mapping->host); in nfs_check_dirty_writeback() 455 if (atomic_read(&nfsi->commit_info.rpcs_out)) { in nfs_check_dirty_writeback() 480 struct nfs_inode *nfsi = NFS_I(inode); in nfs_launder_page() local 485 nfs_fscache_wait_on_page_write(nfsi, page); in nfs_launder_page()
|
D | nfs4state.c | 699 struct nfs_inode *nfsi = NFS_I(inode); in __nfs4_find_state_byowner() local 702 list_for_each_entry_rcu(state, &nfsi->open_states, inode_states) { in __nfs4_find_state_byowner() 723 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_get_open_state() local 738 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() 1468 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_state_mark_open_context_bad() local 1472 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_mark_open_context_bad() 1492 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_reclaim_locks() local 1505 down_write(&nfsi->rwsem); in nfs4_reclaim_locks() [all …]
|
D | nfs4proc.c | 1151 struct nfs_inode *nfsi = NFS_I(dir); in update_changeattr_locked() local 1153 nfsi->cache_validity |= NFS_INO_INVALID_CTIME in update_changeattr_locked() 1158 nfsi->cache_validity &= ~NFS_INO_REVAL_PAGECACHE; in update_changeattr_locked() 1159 nfsi->attrtimeo_timestamp = jiffies; in update_changeattr_locked() 1163 nfsi->cache_validity |= NFS_INO_INVALID_ACCESS | in update_changeattr_locked() 1167 nfsi->read_cache_jiffies = timestamp; in update_changeattr_locked() 1168 nfsi->attr_gencount = nfs_inc_attr_generation_counter(); in update_changeattr_locked() 1169 nfsi->cache_validity &= ~NFS_INO_INVALID_CHANGE; in update_changeattr_locked() 1736 struct nfs_inode *nfsi = NFS_I(state->inode); in update_open_stateid() local 1750 deleg_cur = rcu_dereference(nfsi->delegation); in update_open_stateid() [all …]
|