/kernel/linux/linux-6.6/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->attrtimeo); 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 nfsi in nfs_set_cache_invalid() 226 struct nfs_inode *nfsi = NFS_I(inode); nfs_zap_caches_locked() local 422 nfs_inode_init_regular(struct nfs_inode *nfsi) nfs_inode_init_regular() argument 432 nfs_inode_init_dir(struct nfs_inode *nfsi) nfs_inode_init_dir() argument 472 struct nfs_inode *nfsi = NFS_I(inode); nfs_fhget() local 1007 struct nfs_inode *nfsi; nfs_close_context() local 1108 struct nfs_inode *nfsi = NFS_I(inode); nfs_inode_attach_open_context() local 1134 struct nfs_inode *nfsi = NFS_I(inode); nfs_find_open_context() local 1198 struct nfs_inode *nfsi = NFS_I(inode); __nfs_revalidate_inode() local 1321 struct nfs_inode *nfsi = NFS_I(inode); nfs_clear_invalid_mapping() local 1378 struct nfs_inode *nfsi = NFS_I(inode); nfs_revalidate_mapping_rcu() local 1417 nfs_file_has_writers(struct nfs_inode *nfsi) nfs_file_has_writers() argument 1428 nfs_file_has_buffered_writers(struct nfs_inode *nfsi) nfs_file_has_buffered_writers() argument 1480 struct nfs_inode *nfsi = NFS_I(inode); nfs_check_inode_attributes() local 1819 nfs_ooo_merge(struct nfs_inode *nfsi, u64 start, u64 end) nfs_ooo_merge() argument 1865 nfs_ooo_record(struct nfs_inode *nfsi, struct nfs_fattr *fattr) nfs_ooo_record() argument 2061 struct nfs_inode *nfsi = NFS_I(inode); nfs_update_inode() local 2323 struct nfs_inode *nfsi; nfs_alloc_inode() local 2349 nfs4_init_once(struct nfs_inode *nfsi) nfs4_init_once() argument 2361 struct nfs_inode *nfsi = foo; init_once() local [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 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 [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 in nfs_detach_delegation_locked() 360 nfs_detach_delegation(struct nfs_inode *nfsi, struct nfs_delegation *delegation, struct nfs_server *server) nfs_detach_delegation() argument 375 struct nfs_inode *nfsi = NFS_I(inode); nfs_inode_detach_delegation() local 435 struct nfs_inode *nfsi = NFS_I(inode); nfs_inode_set_delegation() local 752 struct nfs_inode *nfsi = NFS_I(inode); nfs4_inode_return_delegation() local 1431 struct nfs_inode *nfsi = NFS_I(inode); nfs4_copy_delegation_stateid() local 1464 struct nfs_inode *nfsi = NFS_I(inode); nfs4_delegation_flush_on_close() local [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 in nfs_same_file() 680 struct nfs_inode *nfsi = NFS_I(dir); nfs_readdir_record_entry_cache_hit() local 699 struct nfs_inode *nfsi = NFS_I(dir); nfs_readdir_record_entry_cache_miss() local 1014 struct nfs_inode *nfsi = NFS_I(inode); find_and_lock_cache_page() local 1223 struct nfs_inode *nfsi = NFS_I(inode); nfs_readdir() local 2801 struct nfs_inode *nfsi, *next; nfs_do_access_cache_scan() local 2871 __nfs_access_zap_cache(struct nfs_inode *nfsi, struct list_head *head) __nfs_access_zap_cache() argument 2983 struct nfs_inode *nfsi = NFS_I(inode); nfs_access_get_cached_locked() local 3032 struct nfs_inode *nfsi = NFS_I(inode); nfs_access_get_cached_rcu() local 3077 struct nfs_inode *nfsi = NFS_I(inode); nfs_access_add_rbtree() local [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 in __pnfs_destroy_layout() 785 pnfs_destroy_layout(struct nfs_inode *nfsi) pnfs_destroy_layout() argument 791 pnfs_layout_removed(struct nfs_inode *nfsi, struct pnfs_layout_hdr *lo) pnfs_layout_removed() argument 802 pnfs_destroy_layout_final(struct nfs_inode *nfsi) pnfs_destroy_layout_final() argument 1154 struct nfs_inode *nfsi = NFS_I(inode); pnfs_clear_layoutcommit() local 1333 struct nfs_inode *nfsi = NFS_I(ino); _pnfs_return_layout() local 1425 struct nfs_inode *nfsi = NFS_I(ino); pnfs_roc() local 1606 struct nfs_inode *nfsi = NFS_I(ino); pnfs_wait_on_layoutreturn() local 1750 struct nfs_inode *nfsi = NFS_I(ino); global() variable 1853 struct nfs_inode *nfsi = NFS_I(ino); pnfs_within_mdsthreshold() local 3150 struct nfs_inode *nfsi = NFS_I(inode); pnfs_set_layoutcommit() local 3198 struct nfs_inode *nfsi = NFS_I(inode); pnfs_layoutcommit_inode() local 3302 struct nfs_inode *nfsi = NFS_I(inode); pnfs_report_layoutstat() local [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 in nfs4_xattr_get_cache() [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 | 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 1295 struct nfs_inode *nfsi = NFS_I(inode); nfs_folio_write_uptodate() local 1430 struct nfs_inode *nfsi = NFS_I(nfs_page_to_inode(req)); nfs_redirty_request() local 1979 struct nfs_inode *nfsi = NFS_I(inode); nfs_write_inode() local [all...] |
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 | 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()
|
/kernel/linux/linux-5.10/fs/nfs/ |
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 in nfs_start_io_direct() local [all...] |
H A 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->attrtimeo); in nfs_attribute_timeout() 199 static bool nfs_has_xattr_cache(const struct nfs_inode *nfsi) in nfs_has_xattr_cache() argument 201 return nfsi->xattr_cache != NULL; in nfs_has_xattr_cache() 204 static bool nfs_has_xattr_cache(const struct nfs_inode *nfsi) in nfs_has_xattr_cache() argument 212 struct nfs_inode *nfsi = NFS_I(inode); in nfs_set_cache_invalid() local 225 if (!nfs_has_xattr_cache(nfsi)) in nfs_set_cache_invalid() 229 nfsi in nfs_set_cache_invalid() 239 struct nfs_inode *nfsi = NFS_I(inode); nfs_zap_caches_locked() local 476 struct nfs_inode *nfsi = NFS_I(inode); nfs_fhget() local 961 struct nfs_inode *nfsi; nfs_close_context() local 1063 struct nfs_inode *nfsi = NFS_I(inode); nfs_inode_attach_open_context() local 1089 struct nfs_inode *nfsi = NFS_I(inode); nfs_find_open_context() local 1153 struct nfs_inode *nfsi = NFS_I(inode); __nfs_revalidate_inode() local 1255 struct nfs_inode *nfsi = NFS_I(inode); nfs_invalidate_mapping() local 1290 struct nfs_inode *nfsi = NFS_I(inode); nfs_revalidate_mapping_rcu() local 1317 struct nfs_inode *nfsi = NFS_I(inode); nfs_revalidate_mapping() local 1375 nfs_file_has_writers(struct nfs_inode *nfsi) nfs_file_has_writers() argument 1386 nfs_file_has_buffered_writers(struct nfs_inode *nfsi) nfs_file_has_buffered_writers() argument 1439 struct nfs_inode *nfsi = NFS_I(inode); nfs_check_inode_attributes() local 1838 struct nfs_inode *nfsi = NFS_I(inode); nfs_update_inode() local 2119 struct nfs_inode *nfsi; nfs_alloc_inode() local 2141 nfs4_init_once(struct nfs_inode *nfsi) nfs4_init_once() argument 2153 struct nfs_inode *nfsi = (struct nfs_inode *) foo; init_once() local [all...] |
H A D | fscache.c | 229 struct nfs_inode *nfsi) in nfs_fscache_update_auxdata() 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() 228 nfs_fscache_update_auxdata(struct nfs_fscache_inode_auxdata *auxdata, struct nfs_inode *nfsi) nfs_fscache_update_auxdata() argument 269 struct nfs_inode *nfsi = NFS_I(inode); nfs_fscache_clear_inode() local 308 struct nfs_inode *nfsi = NFS_I(inode); nfs_fscache_open_file() local [all...] |
H 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()
|
H A 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 in nfs_readdir_search_for_cookie() local 419 struct nfs_inode *nfsi; nfs_same_file() local 455 struct nfs_inode *nfsi = NFS_I(dir); nfs_advise_use_readdirplus() local 472 struct nfs_inode *nfsi = NFS_I(dir); nfs_force_use_readdirplus() local 754 struct nfs_inode *nfsi = NFS_I(inode); find_and_lock_cache_page() local 1206 struct nfs_inode *nfsi = NFS_I(inode); nfs_mark_dir_for_revalidate() local 2359 struct nfs_inode *nfsi, *next; nfs_do_access_cache_scan() local 2429 __nfs_access_zap_cache(struct nfs_inode *nfsi, struct list_head *head) __nfs_access_zap_cache() argument 2484 struct nfs_inode *nfsi = NFS_I(inode); nfs_access_get_cached_locked() local 2529 struct nfs_inode *nfsi = NFS_I(inode); nfs_access_get_cached_rcu() local 2569 struct nfs_inode *nfsi = NFS_I(inode); nfs_access_add_rbtree() local [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 in nfs_detach_delegation_locked() 360 nfs_detach_delegation(struct nfs_inode *nfsi, struct nfs_delegation *delegation, struct nfs_server *server) nfs_detach_delegation() argument 375 struct nfs_inode *nfsi = NFS_I(inode); nfs_inode_detach_delegation() local 435 struct nfs_inode *nfsi = NFS_I(inode); nfs_inode_set_delegation() local 734 struct nfs_inode *nfsi = NFS_I(inode); nfs4_inode_return_delegation() local 1407 struct nfs_inode *nfsi = NFS_I(inode); nfs4_copy_delegation_stateid() local 1440 struct nfs_inode *nfsi = NFS_I(inode); nfs4_delegation_flush_on_close() local [all...] |
H A 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 [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() 765 static struct pnfs_layout_hdr *__pnfs_destroy_layout(struct nfs_inode *nfsi) in __pnfs_destroy_layout() argument 770 spin_lock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() 771 lo = nfsi->layout; in __pnfs_destroy_layout() 777 spin_unlock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() 779 nfs_commit_inode(&nfsi->vfs_inode, 0); in __pnfs_destroy_layout() 782 spin_unlock(&nfsi in __pnfs_destroy_layout() 786 pnfs_destroy_layout(struct nfs_inode *nfsi) pnfs_destroy_layout() argument 792 pnfs_layout_removed(struct nfs_inode *nfsi, struct pnfs_layout_hdr *lo) pnfs_layout_removed() argument 803 pnfs_destroy_layout_final(struct nfs_inode *nfsi) pnfs_destroy_layout_final() argument 1156 struct nfs_inode *nfsi = NFS_I(inode); pnfs_clear_layoutcommit() local 1335 struct nfs_inode *nfsi = NFS_I(ino); _pnfs_return_layout() local 1427 struct nfs_inode *nfsi = NFS_I(ino); pnfs_roc() local 1609 struct nfs_inode *nfsi = NFS_I(ino); pnfs_wait_on_layoutreturn() local 1753 struct nfs_inode *nfsi = NFS_I(ino); global() variable 1856 struct nfs_inode *nfsi = NFS_I(ino); pnfs_within_mdsthreshold() local 3152 struct nfs_inode *nfsi = NFS_I(inode); pnfs_set_layoutcommit() local 3200 struct nfs_inode *nfsi = NFS_I(inode); pnfs_layoutcommit_inode() local 3304 struct nfs_inode *nfsi = NFS_I(inode); pnfs_report_layoutstat() local [all...] |
H 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() 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 in nfs4_xattr_get_cache() [all...] |
H 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
|
H A D | write.c | 66 nfs_page_search_commits_for_head_request_locked(struct nfs_inode *nfsi, 211 struct nfs_inode *nfsi = NFS_I(inode); in nfs_page_find_swap_request() local 215 mutex_lock(&nfsi->commit_mutex); in nfs_page_find_swap_request() 217 req = nfs_page_search_commits_for_head_request_locked(nfsi, in nfs_page_find_swap_request() 224 mutex_unlock(&nfsi->commit_mutex); in nfs_page_find_swap_request() 743 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_add_request() local 764 atomic_long_inc(&nfsi->nrequests); in nfs_inode_add_request() 780 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_remove_request() local 797 atomic_long_dec(&nfsi->nrequests); in nfs_inode_remove_request() 817 nfs_page_search_commits_for_head_request_locked(struct nfs_inode *nfsi, in nfs_page_search_commits_for_head_request_locked() argument 1262 struct nfs_inode *nfsi = NFS_I(inode); nfs_write_pageuptodate() local 1948 struct nfs_inode *nfsi = NFS_I(inode); nfs_write_inode() local [all...] |
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() 711 static inline void pnfs_destroy_layout(struct nfs_inode *nfsi) in pnfs_destroy_layout() argument 715 static inline void pnfs_destroy_layout_final(struct nfs_inode *nfsi) in pnfs_destroy_layout_final() argument
|
H A D | file.c | 439 struct nfs_inode *nfsi; in nfs_check_dirty_writeback() local 450 nfsi = NFS_I(mapping->host); in nfs_check_dirty_writeback() 451 if (atomic_read(&nfsi->commit_info.rpcs_out)) { in nfs_check_dirty_writeback() 476 struct nfs_inode *nfsi = NFS_I(inode); in nfs_launder_page() local 481 nfs_fscache_wait_on_page_write(nfsi, page); in nfs_launder_page()
|
/kernel/linux/linux-6.6/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 in nfs_ooo_test() [all...] |