/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->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 202 if (!nfs_has_xattr_cache(nfsi)) in nfs_set_cache_invalid() 208 flags |= nfsi in nfs_set_cache_invalid() 228 struct nfs_inode *nfsi = NFS_I(inode); nfs_zap_caches_locked() local 426 nfs_inode_init_regular(struct nfs_inode * nfsi) nfs_inode_init_regular() argument 436 nfs_inode_init_dir(struct nfs_inode * nfsi) nfs_inode_init_dir() argument 476 struct nfs_inode *nfsi = NFS_I(inode); nfs_fhget() local 1091 struct nfs_inode *nfsi; nfs_close_context() local 1192 struct nfs_inode *nfsi = NFS_I(inode); nfs_inode_attach_open_context() local 1218 struct nfs_inode *nfsi = NFS_I(inode); nfs_find_open_context() local 1282 struct nfs_inode *nfsi = NFS_I(inode); __nfs_revalidate_inode() local 1405 struct nfs_inode *nfsi = NFS_I(inode); nfs_clear_invalid_mapping() local 1469 struct nfs_inode *nfsi = NFS_I(inode); nfs_revalidate_mapping_rcu() local 1508 nfs_file_has_writers(struct nfs_inode * nfsi) nfs_file_has_writers() argument 1519 nfs_file_has_buffered_writers(struct nfs_inode * nfsi) nfs_file_has_buffered_writers() argument 1571 struct nfs_inode *nfsi = NFS_I(inode); nfs_check_inode_attributes() local 1911 nfs_ooo_merge(struct nfs_inode * nfsi,u64 start,u64 end) nfs_ooo_merge() argument 1957 nfs_ooo_record(struct nfs_inode * nfsi,struct nfs_fattr * fattr) nfs_ooo_record() argument 2153 struct nfs_inode *nfsi = NFS_I(inode); nfs_update_inode() local 2418 struct nfs_inode *nfsi; nfs_alloc_inode() local 2444 nfs4_init_once(struct nfs_inode * nfsi) nfs4_init_once() argument 2456 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 52 if (test_bit(NFS_INO_ODIRECT, &nfsi->flags) == 0) in nfs_start_io_read() 60 nfs_block_o_direct(nfsi, inode); in nfs_start_io_read() 111 static void nfs_block_buffered(struct nfs_inode *nfsi, struct inode *inode) in nfs_block_buffered() argument 113 if (!test_bit(NFS_INO_ODIRECT, &nfsi->flags)) { in nfs_block_buffered() 114 set_bit(NFS_INO_ODIRECT, &nfsi->flags); in nfs_block_buffered() 138 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 [all...] |
H A D | delegation.c | 183 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_opens() local 191 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_delegation_claim_opens() 301 nfs_start_delegation_return_locked(struct nfs_inode *nfsi) in nfs_start_delegation_return_locked() argument 304 struct nfs_delegation *delegation = rcu_dereference(nfsi->delegation); in nfs_start_delegation_return_locked() 316 nfs_clear_verifier_delegated(&nfsi->vfs_inode); in nfs_start_delegation_return_locked() 322 nfs_start_delegation_return(struct nfs_inode *nfsi) in nfs_start_delegation_return() argument 327 delegation = nfs_start_delegation_return_locked(nfsi); in nfs_start_delegation_return() 346 nfs_detach_delegation_locked(struct nfs_inode *nfsi, in nfs_detach_delegation_locked() argument 351 rcu_dereference_protected(nfsi->delegation, in nfs_detach_delegation_locked() 364 rcu_assign_pointer(nfsi->delegation, NULL); in nfs_detach_delegation_locked() [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() 777 static struct pnfs_layout_hdr *__pnfs_destroy_layout(struct nfs_inode *nfsi) in __pnfs_destroy_layout() argument 782 spin_lock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() 783 lo = nfsi->layout; in __pnfs_destroy_layout() 789 spin_unlock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() 791 nfs_commit_inode(&nfsi->vfs_inode, 0); in __pnfs_destroy_layout() 794 spin_unlock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout() [all …]
|
H A D | dir.c | 80 struct nfs_inode *nfsi = NFS_I(dir); in alloc_nfs_open_dir_context() local 85 ctx->attr_gencount = nfsi->attr_gencount; in alloc_nfs_open_dir_context() 88 if (list_empty(&nfsi->open_files) && in alloc_nfs_open_dir_context() 89 (nfsi->cache_validity & NFS_INO_DATA_INVAL_DEFER)) in alloc_nfs_open_dir_context() 93 list_add_tail_rcu(&ctx->list, &nfsi->open_files); in alloc_nfs_open_dir_context() 94 memcpy(ctx->verf, nfsi->cookieverf, sizeof(ctx->verf)); in alloc_nfs_open_dir_context() 644 struct nfs_inode *nfsi; in nfs_same_file() local 653 nfsi = NFS_I(inode); in nfs_same_file() 654 if (entry->fattr->fileid != nfsi->fileid) in nfs_same_file() 656 if (entry->fh->size && nfs_compare_fh(entry->fh, &nfsi->fh) != 0) in nfs_same_file() [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 | pnfs.h | 597 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_layoutcommit_outstanding() local 599 return test_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags) != 0 || in pnfs_layoutcommit_outstanding() 600 test_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags) != 0; in pnfs_layoutcommit_outstanding() 605 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_return_layout() local 608 if (pnfs_enabled_sb(nfss) && nfsi->layout) { in pnfs_return_layout() 609 set_bit(NFS_LAYOUT_RETURN_REQUESTED, &nfsi->layout->plh_flags); in pnfs_return_layout() 717 static inline void pnfs_destroy_layout(struct nfs_inode *nfsi) in pnfs_destroy_layout() argument 721 static inline void pnfs_destroy_layout_final(struct nfs_inode *nfsi) in pnfs_destroy_layout_final() argument
|
H A D | file.c | 254 struct nfs_inode *nfsi = NFS_I(inode); in nfs_file_fsync() local 255 long save_nredirtied = atomic_long_read(&nfsi->redirtied_pages); in nfs_file_fsync() 271 nredirtied = atomic_long_read(&nfsi->redirtied_pages); in nfs_file_fsync() 472 struct nfs_inode *nfsi; in nfs_check_dirty_writeback() local 480 nfsi = NFS_I(mapping->host); in nfs_check_dirty_writeback() 481 if (atomic_read(&nfsi->commit_info.rpcs_out)) { in nfs_check_dirty_writeback()
|
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 | 171 struct nfs_inode *nfsi; in nfs_layout_find_inode_by_fh() local 178 nfsi = NFS_I(lo->plh_inode); in nfs_layout_find_inode_by_fh() 179 if (nfs_compare_fh(fh, &nfsi->fh)) in nfs_layout_find_inode_by_fh() 181 if (nfsi->layout != lo) in nfs_layout_find_inode_by_fh()
|
H A D | nfs4trace.h | 1529 const struct nfs_inode *nfsi = NFS_I(inode); 1531 hdr->args.fh : &nfsi->fh; 1537 __entry->fileid = nfsi->fileid; 1603 const struct nfs_inode *nfsi = NFS_I(inode); 1605 hdr->args.fh : &nfsi->fh; 1611 __entry->fileid = nfsi->fileid; 1675 const struct nfs_inode *nfsi = NFS_I(inode); 1677 data->args.fh : &nfsi->fh; 1681 __entry->fileid = nfsi->fileid; 2277 const struct nfs_inode *nfsi = NFS_I(inode); [all …]
|
H A D | nfs4proc.c | 1266 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_update_changeattr_locked() local 1295 nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); in nfs4_update_changeattr_locked() 1297 nfsi->attrtimeo_timestamp = jiffies; in nfs4_update_changeattr_locked() 1298 nfsi->read_cache_jiffies = timestamp; in nfs4_update_changeattr_locked() 1299 nfsi->attr_gencount = nfs_inc_attr_generation_counter(); in nfs4_update_changeattr_locked() 1300 nfsi->cache_validity &= ~NFS_INO_INVALID_CHANGE; in nfs4_update_changeattr_locked() 1865 struct nfs_inode *nfsi = NFS_I(state->inode); in update_open_stateid() local 1884 if (rcu_dereference(nfsi->delegation) != deleg_cur || in update_open_stateid() 2161 struct nfs_inode *nfsi = NFS_I(state->inode); in nfs4_state_find_open_context_mode() local 2165 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_find_open_context_mode() [all …]
|
/linux/Documentation/filesystems/nfs/ |
H A D | pnfs.rst | 18 segments in nfsi->layout, of type struct pnfs_layout_hdr.
|