/linux/fs/nfs/ |
A D | inode.c | 164 …return !time_in_range_open(jiffies, nfsi->read_cache_jiffies, nfsi->read_cache_jiffies + nfsi->att… in nfs_attribute_timeout() 441 memset(nfsi->cookieverf, 0, sizeof(nfsi->cookieverf)); in nfs_inode_init_dir() 530 nfsi->write_io = 0; in nfs_fhget() 531 nfsi->read_io = 0; in nfs_fhget() 1016 nfsi = NFS_I(inode); in nfs_close_context() 1428 return nfs_file_has_writers(nfsi) && nfs_file_io_is_buffered(nfsi); in nfs_file_has_buffered_writers() 2212 nfsi->attrtimeo_timestamp + nfsi->attrtimeo)) { in nfs_update_inode() 2245 if (!nfsi) in nfs_alloc_inode() 2247 nfsi->flags = 0UL; in nfs_alloc_inode() 2271 nfsi->layout = NULL; in nfs4_init_once() [all …]
|
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() 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 128 if (test_bit(NFS_INO_ODIRECT, &nfsi->flags) != 0) in nfs_start_io_direct() [all …]
|
A D | fscache.c | 229 struct nfs_inode *nfsi) in nfs_fscache_update_auxdata() argument 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() 258 nfsi->fh.data, nfsi->fh.size, in nfs_fscache_init_inode() 260 nfsi, nfsi->vfs_inode.i_size, false); in nfs_fscache_init_inode() 269 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_clear_inode() local 274 nfs_fscache_update_auxdata(&auxdata, nfsi); in nfs_fscache_clear_inode() 276 nfsi->fscache = NULL; in nfs_fscache_clear_inode() 308 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_open_file() local [all …]
|
A 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()
|
A D | nfstrace.h | 68 __entry->fileid = nfsi->fileid; 106 __entry->fileid = nfsi->fileid; 195 __entry->fileid = nfsi->fileid; 249 __entry->fileid = nfsi->fileid; 986 hdr->args.fh : &nfsi->fh; 1028 hdr->args.fh : &nfsi->fh; 1075 hdr->args.fh : &nfsi->fh; 1123 hdr->args.fh : &nfsi->fh; 1130 __entry->fileid = nfsi->fileid; 1163 hdr->args.fh : &nfsi->fh; [all …]
|
A D | dir.c | 73 struct nfs_inode *nfsi = NFS_I(dir); in alloc_nfs_open_dir_context() local 83 if (list_empty(&nfsi->open_files) && in alloc_nfs_open_dir_context() 574 struct nfs_inode *nfsi; in nfs_same_file() local 583 nfsi = NFS_I(inode); in nfs_same_file() 610 struct nfs_inode *nfsi = NFS_I(dir); in nfs_advise_use_readdirplus() local 613 !list_empty(&nfsi->open_files)) in nfs_advise_use_readdirplus() 627 struct nfs_inode *nfsi = NFS_I(dir); in nfs_force_use_readdirplus() local 930 memcpy(nfsi->cookieverf, verf, in find_and_lock_cache_page() 931 sizeof(nfsi->cookieverf)); in find_and_lock_cache_page() 2553 struct nfs_inode *nfsi, *next; in nfs_do_access_cache_scan() local [all …]
|
A D | pnfs.c | 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() 755 lo = nfsi->layout; in __pnfs_destroy_layout() 782 ret = nfsi->layout != lo; in pnfs_layout_removed() 1333 lo = nfsi->layout; in _pnfs_return_layout() 1426 lo = nfsi->layout; in pnfs_roc() 1747 nfsi->layout = new; in pnfs_find_alloc_layout() 1753 return nfsi->layout; in pnfs_find_alloc_layout() 1858 nfsi->read_io); in pnfs_within_mdsthreshold() [all …]
|
A D | delegation.c | 180 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_opens() local 309 nfs_clear_verifier_delegated(&nfsi->vfs_inode); in nfs_start_delegation_return_locked() 344 rcu_dereference_protected(nfsi->delegation, in nfs_detach_delegation_locked() 357 rcu_assign_pointer(nfsi->delegation, NULL); in nfs_detach_delegation_locked() 377 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_detach_delegation() local 382 delegation = rcu_dereference(nfsi->delegation); in nfs_inode_detach_delegation() 437 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_set_delegation() local 754 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_inode_return_delegation() local 757 delegation = nfs_start_delegation_return(nfsi); in nfs4_inode_return_delegation() 1433 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_copy_delegation_stateid() local [all …]
|
A 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() 441 cache = nfsi->xattr_cache; in nfs4_xattr_get_cache() 471 if (nfsi->xattr_cache != NULL) { in nfs4_xattr_get_cache() 472 newcache = nfsi->xattr_cache; in nfs4_xattr_get_cache() [all …]
|
A 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
|
A D | write.c | 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() 227 mutex_unlock(&nfsi->commit_mutex); in nfs_page_find_swap_request() 756 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_add_request() local 774 atomic_long_inc(&nfsi->nrequests); in nfs_inode_add_request() 790 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_remove_request() local 807 atomic_long_dec(&nfsi->nrequests); in nfs_inode_remove_request() 832 struct inode *inode = &nfsi->vfs_inode; in nfs_page_search_commits_for_head_request_locked() 1290 struct nfs_inode *nfsi = NFS_I(inode); in nfs_write_pageuptodate() local 1294 if (nfsi->cache_validity & in nfs_write_pageuptodate() [all …]
|
A D | pnfs.h | 593 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_layoutcommit_outstanding() local 595 return test_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags) != 0 || in pnfs_layoutcommit_outstanding() 596 test_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags) != 0; in pnfs_layoutcommit_outstanding() 601 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_return_layout() local 604 if (pnfs_enabled_sb(nfss) && nfsi->layout) { in pnfs_return_layout() 605 set_bit(NFS_LAYOUT_RETURN_REQUESTED, &nfsi->layout->plh_flags); in pnfs_return_layout() 706 static inline void pnfs_destroy_layout(struct nfs_inode *nfsi) in pnfs_destroy_layout() argument 710 static inline void pnfs_destroy_layout_final(struct nfs_inode *nfsi) in pnfs_destroy_layout_final() argument
|
A D | internal.h | 346 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument 348 if (nfs_server_capable(&nfsi->vfs_inode, NFS_CAP_SECURITY_LABEL)) in nfs_zap_label_cache_locked() 349 nfsi->cache_validity |= NFS_INO_INVALID_LABEL; in nfs_zap_label_cache_locked() 353 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument 439 static inline bool nfs_file_io_is_buffered(struct nfs_inode *nfsi) in nfs_file_io_is_buffered() argument 441 return test_bit(NFS_INO_ODIRECT, &nfsi->flags) == 0; in nfs_file_io_is_buffered()
|
A 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()
|
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()
|
A 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() 1432 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_find_state_and_recover() local 1438 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_inode_find_state_and_recover() 1467 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_state_mark_open_context_bad() local 1471 list_for_each_entry_rcu(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 …]
|
A D | nfs4trace.h | 1497 const struct nfs_inode *nfsi = NFS_I(inode); 1499 hdr->args.fh : &nfsi->fh; 1505 __entry->fileid = nfsi->fileid; 1571 const struct nfs_inode *nfsi = NFS_I(inode); 1573 hdr->args.fh : &nfsi->fh; 1579 __entry->fileid = nfsi->fileid; 1643 const struct nfs_inode *nfsi = NFS_I(inode); 1645 data->args.fh : &nfsi->fh; 1649 __entry->fileid = nfsi->fileid; 2136 __entry->fileid = nfsi->fileid; [all …]
|
A D | nfs4proc.c | 1240 nfsi->attrtimeo_timestamp = jiffies; in nfs4_update_changeattr_locked() 1241 nfsi->read_cache_jiffies = timestamp; in nfs4_update_changeattr_locked() 5704 kfree(nfsi->nfs4_acl); in nfs4_set_cached_acl() 5705 nfsi->nfs4_acl = acl; in nfs4_set_cached_acl() 5721 acl = nfsi->nfs4_acl; in nfs4_read_cached_acl() 6860 down_read(&nfsi->rwsem); in nfs4_proc_unlck() 6862 up_read(&nfsi->rwsem); in nfs4_proc_unlck() 6866 up_read(&nfsi->rwsem); in nfs4_proc_unlck() 7207 down_read(&nfsi->rwsem); in _nfs4_proc_setlk() 7213 up_read(&nfsi->rwsem); in _nfs4_proc_setlk() [all …]
|
/linux/include/linux/ |
A D | nfs_fs.h | 353 struct nfs_inode *nfsi = NFS_I(inode); in nfs_mark_for_revalidate() local 356 nfsi->cache_validity |= NFS_INO_REVAL_PAGECACHE in nfs_mark_for_revalidate() 362 nfsi->cache_validity |= NFS_INO_INVALID_DATA; in nfs_mark_for_revalidate()
|
/linux/Documentation/filesystems/nfs/ |
A D | pnfs.rst | 18 segments in nfsi->layout, of type struct pnfs_layout_hdr.
|