| /linux/fs/nfs/ |
| H A D | inode.c | 159 struct nfs_inode *nfsi = NFS_I(inode); in nfs_attribute_timeout() local 161 …return !time_in_range_open(jiffies, nfsi->read_cache_jiffies, nfsi->read_cache_jiffies + nfsi->att… in nfs_attribute_timeout() 181 static bool nfs_has_xattr_cache(const struct nfs_inode *nfsi) in nfs_has_xattr_cache() argument 183 return nfsi->xattr_cache != NULL; in nfs_has_xattr_cache() 186 static bool nfs_has_xattr_cache(const struct nfs_inode *nfsi) in nfs_has_xattr_cache() argument 194 struct nfs_inode *nfsi = NFS_I(inode); in nfs_set_cache_invalid() local 205 if (!nfs_has_xattr_cache(nfsi)) in nfs_set_cache_invalid() 211 flags |= nfsi->cache_validity; in nfs_set_cache_invalid() 216 smp_store_release(&nfsi->cache_validity, flags); in nfs_set_cache_invalid() 219 nfsi->cache_validity & NFS_INO_INVALID_DATA) { in nfs_set_cache_invalid() [all …]
|
| H A D | io.c | 36 struct nfs_inode *nfsi = NFS_I(inode); in nfs_start_io_read() local 43 if (test_bit(NFS_INO_ODIRECT, &nfsi->flags) == 0) in nfs_start_io_read() 51 nfs_file_block_o_direct(nfsi); in nfs_start_io_read() 104 static void nfs_block_buffered(struct nfs_inode *nfsi, struct inode *inode) in nfs_block_buffered() argument 106 if (!test_bit(NFS_INO_ODIRECT, &nfsi->flags)) { in nfs_block_buffered() 107 set_bit(NFS_INO_ODIRECT, &nfsi->flags); in nfs_block_buffered() 131 struct nfs_inode *nfsi = NFS_I(inode); in nfs_start_io_direct() local 138 if (test_bit(NFS_INO_ODIRECT, &nfsi->flags) != 0) in nfs_start_io_direct() 146 nfs_block_buffered(nfsi, inode); in nfs_start_io_direct()
|
| H A D | nfstrace.h | 81 const struct nfs_inode *nfsi = NFS_I(inode); 83 __entry->fileid = nfsi->fileid; 84 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); 86 __entry->cache_validity = nfsi->cache_validity; 121 const struct nfs_inode *nfsi = NFS_I(inode); 124 __entry->fileid = nfsi->fileid; 125 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); 129 __entry->nfsi_flags = nfsi->flags; 130 __entry->cache_validity = nfsi->cache_validity; 211 const struct nfs_inode *nfsi = NFS_I(inode); [all …]
|
| H A D | delegation.c | 208 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_opens() local 216 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_delegation_claim_opens() 324 nfs_start_delegation_return(struct nfs_inode *nfsi) in nfs_start_delegation_return() argument 330 delegation = rcu_dereference(nfsi->delegation); in nfs_start_delegation_return() 347 nfs_clear_verifier_delegated(&nfsi->vfs_inode); in nfs_start_delegation_return() 352 nfs_detach_delegations_locked(struct nfs_inode *nfsi, in nfs_detach_delegations_locked() argument 358 trace_nfs4_detach_delegation(&nfsi->vfs_inode, delegation->type); in nfs_detach_delegations_locked() 368 rcu_assign_pointer(nfsi->delegation, NULL); in nfs_detach_delegations_locked() 370 clear_bit(NFS_INO_REQ_DIR_DELEG, &nfsi->flags); in nfs_detach_delegations_locked() 374 static bool nfs_detach_delegation(struct nfs_inode *nfsi, in nfs_detach_delegation() argument [all …]
|
| H A D | pnfs.c | 297 struct nfs_inode *nfsi = NFS_I(lo->plh_inode); in pnfs_detach_layout_hdr() local 299 nfsi->layout = NULL; in pnfs_detach_layout_hdr() 301 nfsi->write_io = 0; in pnfs_detach_layout_hdr() 302 nfsi->read_io = 0; in pnfs_detach_layout_hdr() 785 static struct pnfs_layout_hdr *__pnfs_destroy_layout(struct nfs_inode *nfsi) in __pnfs_destroy_layout() argument 790 spin_lock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() 791 lo = nfsi->layout; in __pnfs_destroy_layout() 797 spin_unlock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() 799 nfs_commit_inode(&nfsi->vfs_inode, 0); in __pnfs_destroy_layout() 802 spin_unlock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() [all …]
|
| H A D | fscache.h | 81 static inline void nfs_netfs_inode_init(struct nfs_inode *nfsi) in nfs_netfs_inode_init() argument 83 netfs_inode_init(&nfsi->netfs, &nfs_netfs_ops, false); in nfs_netfs_inode_init() 163 static inline void nfs_netfs_inode_init(struct nfs_inode *nfsi) {} in nfs_netfs_inode_init() argument
|
| H A D | internal.h | 366 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument 368 if (nfs_server_capable(&nfsi->vfs_inode, NFS_CAP_SECURITY_LABEL)) in nfs_zap_label_cache_locked() 369 nfsi->cache_validity |= NFS_INO_INVALID_LABEL; in nfs_zap_label_cache_locked() 373 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument 537 static inline bool nfs_file_io_is_buffered(struct nfs_inode *nfsi) in nfs_file_io_is_buffered() argument 539 return test_bit(NFS_INO_ODIRECT, &nfsi->flags) == 0; in nfs_file_io_is_buffered() 543 static inline void nfs_file_block_o_direct(struct nfs_inode *nfsi) in nfs_file_block_o_direct() argument 545 if (test_bit(NFS_INO_ODIRECT, &nfsi->flags)) { in nfs_file_block_o_direct() 546 clear_bit(NFS_INO_ODIRECT, &nfsi->flags); in nfs_file_block_o_direct() 547 inode_dio_wait(&nfsi->vfs_inode); in nfs_file_block_o_direct()
|
| H A D | pnfs.h | 598 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_layoutcommit_outstanding() local 600 return test_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags) != 0 || in pnfs_layoutcommit_outstanding() 601 test_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags) != 0; in pnfs_layoutcommit_outstanding() 606 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_return_layout() local 609 if (pnfs_enabled_sb(nfss) && nfsi->layout) { in pnfs_return_layout() 610 set_bit(NFS_LAYOUT_RETURN_REQUESTED, &nfsi->layout->plh_flags); in pnfs_return_layout() 718 static inline void pnfs_destroy_layout(struct nfs_inode *nfsi) in pnfs_destroy_layout() argument 722 static inline void pnfs_destroy_layout_final(struct nfs_inode *nfsi) in pnfs_destroy_layout_final() argument
|
| H A D | write.c | 712 struct nfs_inode *nfsi = NFS_I(mapping->host); in nfs_inode_add_request() local 723 atomic_long_inc(&nfsi->nrequests); in nfs_inode_add_request() 737 struct nfs_inode *nfsi = NFS_I(nfs_page_to_inode(req)); in nfs_inode_remove_request() local 757 atomic_long_dec(&nfsi->nrequests); in nfs_inode_remove_request() 1220 struct nfs_inode *nfsi = NFS_I(inode); in nfs_folio_write_uptodate() local 1224 if (nfsi->cache_validity & in nfs_folio_write_uptodate() 1228 if (test_bit(NFS_INO_INVALIDATING, &nfsi->flags) && pagelen != 0) in nfs_folio_write_uptodate() 1231 if (nfsi->cache_validity & NFS_INO_INVALID_DATA && pagelen != 0) in nfs_folio_write_uptodate() 1365 struct nfs_inode *nfsi = NFS_I(nfs_page_to_inode(req)); in nfs_redirty_request() local 1370 atomic_long_inc(&nfsi->redirtied_pages); in nfs_redirty_request() [all …]
|
| H A D | fscache.c | 167 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_init_inode() local 178 nfsi->fh.data, /* index_key */ in nfs_fscache_init_inode() 179 nfsi->fh.size, in nfs_fscache_init_inode()
|
| H A D | callback_proc.c | 174 struct nfs_inode *nfsi; in nfs_layout_find_inode_by_fh() local 181 nfsi = NFS_I(lo->plh_inode); in nfs_layout_find_inode_by_fh() 182 if (nfs_compare_fh(fh, &nfsi->fh)) in nfs_layout_find_inode_by_fh() 184 if (nfsi->layout != lo) in nfs_layout_find_inode_by_fh()
|
| H A D | nfs4state.c | 644 struct nfs_inode *nfsi = NFS_I(inode); in __nfs4_find_state_byowner() local 647 list_for_each_entry_rcu(state, &nfsi->open_states, inode_states) { in __nfs4_find_state_byowner() 668 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_get_open_state() local 685 list_add_rcu(&state->inode_states, &nfsi->open_states); in nfs4_get_open_state() 1369 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_find_state_and_recover() local 1377 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_inode_find_state_and_recover() 1406 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_state_mark_open_context_bad() local 1412 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_mark_open_context_bad() 1432 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_reclaim_locks() local 1445 down_write(&nfsi->rwsem); in nfs4_reclaim_locks() [all …]
|
| H A D | nfs4proc.c | 1212 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_update_changeattr_locked() local 1242 nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); in nfs4_update_changeattr_locked() 1244 nfsi->attrtimeo_timestamp = jiffies; in nfs4_update_changeattr_locked() 1245 nfsi->read_cache_jiffies = timestamp; in nfs4_update_changeattr_locked() 1246 nfsi->attr_gencount = nfs_inc_attr_generation_counter(); in nfs4_update_changeattr_locked() 1247 nfsi->cache_validity &= ~NFS_INO_INVALID_CHANGE; in nfs4_update_changeattr_locked() 2120 struct nfs_inode *nfsi = NFS_I(state->inode); in nfs4_state_find_open_context_mode() local 2124 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_find_open_context_mode() 5980 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_set_cached_acl() local 5983 kfree(nfsi->nfs4_acl); in nfs4_set_cached_acl() [all …]
|
| /linux/include/linux/ |
| H A D | nfs_fs.h | 409 struct nfs_inode *nfsi = NFS_I(inode); in nfs_mark_for_revalidate() local 412 nfsi->cache_validity |= NFS_INO_INVALID_ACCESS | NFS_INO_INVALID_ACL | in nfs_mark_for_revalidate() 416 nfsi->cache_validity |= NFS_INO_INVALID_DATA; in nfs_mark_for_revalidate() 680 static inline void nfs_ooo_clear(struct nfs_inode *nfsi) in nfs_ooo_clear() argument 682 nfsi->cache_validity &= ~NFS_INO_DATA_INVAL_DEFER; in nfs_ooo_clear() 683 kfree(nfsi->ooo); in nfs_ooo_clear() 684 nfsi->ooo = NULL; in nfs_ooo_clear() 687 static inline bool nfs_ooo_test(struct nfs_inode *nfsi) in nfs_ooo_test() argument 689 return (nfsi->cache_validity & NFS_INO_DATA_INVAL_DEFER) || in nfs_ooo_test() 690 (nfsi->ooo && nfsi->ooo->cnt > 0); in nfs_ooo_test()
|
| /linux/Documentation/filesystems/nfs/ |
| H A D | pnfs.rst | 18 segments in nfsi->layout, of type struct pnfs_layout_hdr.
|