/openbmc/linux/fs/nfs/ |
H A D | inode.c | 157 struct nfs_inode *nfsi = NFS_I(inode); in nfs_attribute_timeout() local 159 …return !time_in_range_open(jiffies, nfsi->read_cache_jiffies, nfsi->read_cache_jiffies + nfsi->att… in nfs_attribute_timeout() 179 static bool nfs_has_xattr_cache(const struct nfs_inode *nfsi) in nfs_has_xattr_cache() argument 181 return nfsi->xattr_cache != NULL; in nfs_has_xattr_cache() 184 static bool nfs_has_xattr_cache(const struct nfs_inode *nfsi) in nfs_has_xattr_cache() argument 192 struct nfs_inode *nfsi = NFS_I(inode); in nfs_set_cache_invalid() local 203 if (!nfs_has_xattr_cache(nfsi)) in nfs_set_cache_invalid() 209 flags |= nfsi->cache_validity; in nfs_set_cache_invalid() 214 smp_store_release(&nfsi->cache_validity, flags); in nfs_set_cache_invalid() 217 nfsi->cache_validity & NFS_INO_INVALID_DATA) { in nfs_set_cache_invalid() [all …]
|
H A 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 …]
|
H A D | nfstrace.h | 62 const struct nfs_inode *nfsi = NFS_I(inode); 64 __entry->fileid = nfsi->fileid; 65 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); 99 const struct nfs_inode *nfsi = NFS_I(inode); 102 __entry->fileid = nfsi->fileid; 103 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); 107 __entry->nfsi_flags = nfsi->flags; 108 __entry->cache_validity = nfsi->cache_validity; 189 const struct nfs_inode *nfsi = NFS_I(inode); 192 __entry->fileid = nfsi->fileid; [all …]
|
H A 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() 292 nfs_start_delegation_return_locked(struct nfs_inode *nfsi) in nfs_start_delegation_return_locked() argument 295 struct nfs_delegation *delegation = rcu_dereference(nfsi->delegation); in nfs_start_delegation_return_locked() 307 nfs_clear_verifier_delegated(&nfsi->vfs_inode); in nfs_start_delegation_return_locked() 313 nfs_start_delegation_return(struct nfs_inode *nfsi) in nfs_start_delegation_return() argument 318 delegation = nfs_start_delegation_return_locked(nfsi); in nfs_start_delegation_return() 337 nfs_detach_delegation_locked(struct nfs_inode *nfsi, in nfs_detach_delegation_locked() argument 342 rcu_dereference_protected(nfsi->delegation, in nfs_detach_delegation_locked() 355 rcu_assign_pointer(nfsi->delegation, NULL); in nfs_detach_delegation_locked() [all …]
|
H A D | pnfs.c | 296 struct nfs_inode *nfsi = NFS_I(lo->plh_inode); in pnfs_detach_layout_hdr() local 298 nfsi->layout = NULL; in pnfs_detach_layout_hdr() 300 nfsi->write_io = 0; in pnfs_detach_layout_hdr() 301 nfsi->read_io = 0; in pnfs_detach_layout_hdr() 764 static struct pnfs_layout_hdr *__pnfs_destroy_layout(struct nfs_inode *nfsi) in __pnfs_destroy_layout() argument 769 spin_lock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() 770 lo = nfsi->layout; in __pnfs_destroy_layout() 776 spin_unlock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() 778 nfs_commit_inode(&nfsi->vfs_inode, 0); in __pnfs_destroy_layout() 781 spin_unlock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() [all …]
|
H A D | dir.c | 78 struct nfs_inode *nfsi = NFS_I(dir); in alloc_nfs_open_dir_context() local 83 ctx->attr_gencount = nfsi->attr_gencount; in alloc_nfs_open_dir_context() 86 if (list_empty(&nfsi->open_files) && in alloc_nfs_open_dir_context() 87 (nfsi->cache_validity & NFS_INO_DATA_INVAL_DEFER)) in alloc_nfs_open_dir_context() 91 list_add_tail_rcu(&ctx->list, &nfsi->open_files); in alloc_nfs_open_dir_context() 92 memcpy(ctx->verf, nfsi->cookieverf, sizeof(ctx->verf)); in alloc_nfs_open_dir_context() 642 struct nfs_inode *nfsi; in nfs_same_file() local 651 nfsi = NFS_I(inode); in nfs_same_file() 652 if (entry->fattr->fileid != nfsi->fileid) in nfs_same_file() 654 if (entry->fh->size && nfs_compare_fh(entry->fh, &nfsi->fh) != 0) in nfs_same_file() [all …]
|
H A D | nfs42xattr.c | 345 struct nfs_inode *nfsi; in nfs4_xattr_cache_unlink() local 348 nfsi = NFS_I(inode); in nfs4_xattr_cache_unlink() 350 oldcache = nfsi->xattr_cache; in nfs4_xattr_cache_unlink() 355 nfsi->xattr_cache = NULL; in nfs4_xattr_cache_unlink() 356 nfsi->cache_validity &= ~NFS_INO_INVALID_XATTR; in nfs4_xattr_cache_unlink() 428 struct nfs_inode *nfsi; in nfs4_xattr_get_cache() local 431 nfsi = NFS_I(inode); in nfs4_xattr_get_cache() 437 if (nfsi->cache_validity & NFS_INO_INVALID_XATTR) in nfs4_xattr_get_cache() 440 cache = nfsi->xattr_cache; in nfs4_xattr_get_cache() 455 if (nfsi->cache_validity & NFS_INO_INVALID_XATTR) { in nfs4_xattr_get_cache() [all …]
|
H A D | write.c | 67 nfs_page_search_commits_for_head_request_locked(struct nfs_inode *nfsi, 208 struct nfs_inode *nfsi = NFS_I(inode); in nfs_folio_find_swap_request() local 212 mutex_lock(&nfsi->commit_mutex); in nfs_folio_find_swap_request() 214 req = nfs_page_search_commits_for_head_request_locked(nfsi, in nfs_folio_find_swap_request() 221 mutex_unlock(&nfsi->commit_mutex); in nfs_folio_find_swap_request() 761 struct nfs_inode *nfsi = NFS_I(mapping->host); in nfs_inode_add_request() local 779 atomic_long_inc(&nfsi->nrequests); in nfs_inode_add_request() 793 struct nfs_inode *nfsi = NFS_I(nfs_page_to_inode(req)); in nfs_inode_remove_request() local 809 atomic_long_dec(&nfsi->nrequests); in nfs_inode_remove_request() 830 nfs_page_search_commits_for_head_request_locked(struct nfs_inode *nfsi, in nfs_page_search_commits_for_head_request_locked() argument [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); 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 | 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 | file.c | 247 struct nfs_inode *nfsi = NFS_I(inode); in nfs_file_fsync() local 248 long save_nredirtied = atomic_long_read(&nfsi->redirtied_pages); in nfs_file_fsync() 264 nredirtied = atomic_long_read(&nfsi->redirtied_pages); in nfs_file_fsync() 464 struct nfs_inode *nfsi; in nfs_check_dirty_writeback() local 472 nfsi = NFS_I(mapping->host); in nfs_check_dirty_writeback() 473 if (atomic_read(&nfsi->commit_info.rpcs_out)) { in nfs_check_dirty_writeback()
|
H A D | internal.h | 360 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument 362 if (nfs_server_capable(&nfsi->vfs_inode, NFS_CAP_SECURITY_LABEL)) in nfs_zap_label_cache_locked() 363 nfsi->cache_validity |= NFS_INO_INVALID_LABEL; in nfs_zap_label_cache_locked() 367 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument 471 static inline bool nfs_file_io_is_buffered(struct nfs_inode *nfsi) in nfs_file_io_is_buffered() argument 473 return test_bit(NFS_INO_ODIRECT, &nfsi->flags) == 0; in nfs_file_io_is_buffered()
|
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 | 167 struct nfs_inode *nfsi; in nfs_layout_find_inode_by_fh() local 174 nfsi = NFS_I(lo->plh_inode); in nfs_layout_find_inode_by_fh() 175 if (nfs_compare_fh(fh, &nfsi->fh)) in nfs_layout_find_inode_by_fh() 177 if (nfsi->layout != lo) in nfs_layout_find_inode_by_fh()
|
H A D | nfs4trace.h | 1499 const struct nfs_inode *nfsi = NFS_I(inode); 1501 hdr->args.fh : &nfsi->fh; 1507 __entry->fileid = nfsi->fileid; 1573 const struct nfs_inode *nfsi = NFS_I(inode); 1575 hdr->args.fh : &nfsi->fh; 1581 __entry->fileid = nfsi->fileid; 1645 const struct nfs_inode *nfsi = NFS_I(inode); 1647 data->args.fh : &nfsi->fh; 1651 __entry->fileid = nfsi->fileid; 2135 const struct nfs_inode *nfsi = NFS_I(inode); [all …]
|
H A D | nfs4state.c | 702 struct nfs_inode *nfsi = NFS_I(inode); in __nfs4_find_state_byowner() local 705 list_for_each_entry_rcu(state, &nfsi->open_states, inode_states) { in __nfs4_find_state_byowner() 726 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_get_open_state() local 743 list_add_rcu(&state->inode_states, &nfsi->open_states); in nfs4_get_open_state() 1457 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_find_state_and_recover() local 1463 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_inode_find_state_and_recover() 1492 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_state_mark_open_context_bad() local 1496 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_mark_open_context_bad() 1516 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_reclaim_locks() local 1529 down_write(&nfsi->rwsem); in nfs4_reclaim_locks() [all …]
|
H A D | nfs4proc.c | 1220 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_update_changeattr_locked() local 1248 nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); in nfs4_update_changeattr_locked() 1250 nfsi->attrtimeo_timestamp = jiffies; in nfs4_update_changeattr_locked() 1251 nfsi->read_cache_jiffies = timestamp; in nfs4_update_changeattr_locked() 1252 nfsi->attr_gencount = nfs_inc_attr_generation_counter(); in nfs4_update_changeattr_locked() 1253 nfsi->cache_validity &= ~NFS_INO_INVALID_CHANGE; in nfs4_update_changeattr_locked() 1803 struct nfs_inode *nfsi = NFS_I(state->inode); in update_open_stateid() local 1822 if (rcu_dereference(nfsi->delegation) != deleg_cur || in update_open_stateid() 2089 struct nfs_inode *nfsi = NFS_I(state->inode); in nfs4_state_find_open_context_mode() local 2093 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_find_open_context_mode() [all …]
|
/openbmc/linux/include/linux/ |
H A D | nfs_fs.h | 381 struct nfs_inode *nfsi = NFS_I(inode); in nfs_mark_for_revalidate() local 384 nfsi->cache_validity |= NFS_INO_INVALID_ACCESS | NFS_INO_INVALID_ACL | in nfs_mark_for_revalidate() 388 nfsi->cache_validity |= NFS_INO_INVALID_DATA; in nfs_mark_for_revalidate() 649 static inline void nfs_ooo_clear(struct nfs_inode *nfsi) in nfs_ooo_clear() argument 651 nfsi->cache_validity &= ~NFS_INO_DATA_INVAL_DEFER; in nfs_ooo_clear() 652 kfree(nfsi->ooo); in nfs_ooo_clear() 653 nfsi->ooo = NULL; in nfs_ooo_clear() 656 static inline bool nfs_ooo_test(struct nfs_inode *nfsi) in nfs_ooo_test() argument 658 return (nfsi->cache_validity & NFS_INO_DATA_INVAL_DEFER) || in nfs_ooo_test() 659 (nfsi->ooo && nfsi->ooo->cnt > 0); in nfs_ooo_test()
|
/openbmc/linux/Documentation/filesystems/nfs/ |
H A D | pnfs.rst | 18 segments in nfsi->layout, of type struct pnfs_layout_hdr.
|