Home
last modified time | relevance | path

Searched refs:nfsi (Results 1 – 15 of 15) sorted by relevance

/linux/fs/nfs/
H A Dinode.c139 struct nfs_inode *nfsi = NFS_I(inode); in nfs_attribute_timeout() local
141 …return !time_in_range_open(jiffies, nfsi->read_cache_jiffies, nfsi->read_cache_jiffies + nfsi->att… in nfs_attribute_timeout()
161 static bool nfs_has_xattr_cache(const struct nfs_inode *nfsi) in nfs_has_xattr_cache() argument
163 return nfsi->xattr_cache != NULL; in nfs_has_xattr_cache()
166 static bool nfs_has_xattr_cache(const struct nfs_inode *nfsi) in nfs_has_xattr_cache() argument
174 struct nfs_inode *nfsi = NFS_I(inode); in nfs_set_cache_invalid() local
185 if (!nfs_has_xattr_cache(nfsi)) in nfs_set_cache_invalid()
191 flags |= nfsi->cache_validity; in nfs_set_cache_invalid()
196 smp_store_release(&nfsi->cache_validity, flags); in nfs_set_cache_invalid()
199 nfsi->cache_validity & NFS_INO_INVALID_DATA) { in nfs_set_cache_invalid()
[all …]
H A Dnfstrace.h82 const struct nfs_inode *nfsi = NFS_I(inode);
85 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
87 __entry->cache_validity = nfsi->cache_validity;
122 const struct nfs_inode *nfsi = NFS_I(inode);
126 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
130 __entry->nfsi_flags = nfsi->flags;
131 __entry->cache_validity = nfsi->cache_validity;
212 const struct nfs_inode *nfsi = NFS_I(inode);
216 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
220 __entry->nfsi_flags = nfsi->flags;
[all …]
H A Ddelegation.c176 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_locks() local
188 down_write(&nfsi->rwsem); in nfs_delegation_claim_locks()
197 up_write(&nfsi->rwsem); in nfs_delegation_claim_locks()
207 up_write(&nfsi->rwsem); in nfs_delegation_claim_locks()
215 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_opens() local
223 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_delegation_claim_opens()
331 nfs_start_delegation_return(struct nfs_inode *nfsi) in nfs_start_delegation_return() argument
337 delegation = rcu_dereference(nfsi->delegation); in nfs_start_delegation_return()
354 nfs_clear_verifier_delegated(&nfsi->vfs_inode); in nfs_start_delegation_return()
359 nfs_detach_delegations_locked(struct nfs_inode *nfsi, in nfs_detach_delegations_locked() argument
[all …]
H A Dpnfs.c297 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()
786 static struct pnfs_layout_hdr *__pnfs_destroy_layout(struct nfs_inode *nfsi) in __pnfs_destroy_layout() argument
791 spin_lock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout()
792 lo = nfsi->layout; in __pnfs_destroy_layout()
798 spin_unlock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout()
800 nfs_commit_inode(&nfsi->vfs_inode, 0); in __pnfs_destroy_layout()
803 spin_unlock(&nfsi->vfs_inode.i_lock); in __pnfs_destroy_layout()
[all …]
H A Ddir.c79 struct nfs_inode *nfsi = NFS_I(dir); in alloc_nfs_open_dir_context() local
84 ctx->attr_gencount = nfsi->attr_gencount; in alloc_nfs_open_dir_context()
87 if (list_empty(&nfsi->open_files) && in alloc_nfs_open_dir_context()
88 (nfsi->cache_validity & NFS_INO_DATA_INVAL_DEFER)) in alloc_nfs_open_dir_context()
92 list_add_tail_rcu(&ctx->list, &nfsi->open_files); in alloc_nfs_open_dir_context()
93 memcpy(ctx->verf, nfsi->cookieverf, sizeof(ctx->verf)); in alloc_nfs_open_dir_context()
643 struct nfs_inode *nfsi; in nfs_same_file() local
652 nfsi = NFS_I(inode); in nfs_same_file()
655 if (entry->fh->size && nfs_compare_fh(entry->fh, &nfsi->fh) != 0) in nfs_same_file()
683 struct nfs_inode *nfsi = NFS_I(dir); in nfs_readdir_record_entry_cache_hit() local
[all …]
H A Dfscache.h81 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 Dinternal.h368 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument
370 if (nfs_server_capable(&nfsi->vfs_inode, NFS_CAP_SECURITY_LABEL)) in nfs_zap_label_cache_locked()
371 nfsi->cache_validity |= NFS_INO_INVALID_LABEL; in nfs_zap_label_cache_locked()
375 static inline void nfs_zap_label_cache_locked(struct nfs_inode *nfsi) in nfs_zap_label_cache_locked() argument
543 static inline bool nfs_file_io_is_buffered(struct nfs_inode *nfsi) in nfs_file_io_is_buffered() argument
545 return test_bit(NFS_INO_ODIRECT, &nfsi->flags) == 0; in nfs_file_io_is_buffered()
549 static inline void nfs_file_block_o_direct(struct nfs_inode *nfsi) in nfs_file_block_o_direct() argument
551 if (test_bit(NFS_INO_ODIRECT, &nfsi->flags)) { in nfs_file_block_o_direct()
552 clear_bit(NFS_INO_ODIRECT, &nfsi->flags); in nfs_file_block_o_direct()
553 inode_dio_wait(&nfsi->vfs_inode); in nfs_file_block_o_direct()
H A Dpnfs.h600 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_layoutcommit_outstanding() local
602 return test_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags) != 0 || in pnfs_layoutcommit_outstanding()
603 test_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags) != 0; in pnfs_layoutcommit_outstanding()
608 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_return_layout() local
611 if (pnfs_enabled_sb(nfss) && nfsi->layout) { in pnfs_return_layout()
612 set_bit(NFS_LAYOUT_RETURN_REQUESTED, &nfsi->layout->plh_flags); in pnfs_return_layout()
720 static inline void pnfs_destroy_layout(struct nfs_inode *nfsi) in pnfs_destroy_layout() argument
724 static inline void pnfs_destroy_layout_final(struct nfs_inode *nfsi) in pnfs_destroy_layout_final() argument
H A Dwrite.c712 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
758 atomic_long_dec(&nfsi->nrequests); in nfs_inode_remove_request()
1223 struct nfs_inode *nfsi = NFS_I(inode); in nfs_folio_write_uptodate() local
1227 if (nfsi->cache_validity & in nfs_folio_write_uptodate()
1231 if (test_bit(NFS_INO_INVALIDATING, &nfsi->flags) && pagelen != 0) in nfs_folio_write_uptodate()
1234 if (nfsi->cache_validity & NFS_INO_INVALID_DATA && pagelen != 0) in nfs_folio_write_uptodate()
1368 struct nfs_inode *nfsi = NFS_I(nfs_page_to_inode(req)); in nfs_redirty_request() local
1373 atomic_long_inc(&nfsi->redirtied_pages); in nfs_redirty_request()
[all …]
H A Dfscache.c167 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 Dcallback_proc.c174 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 Dnfs4state.c670 struct nfs_inode *nfsi = NFS_I(inode); in __nfs4_find_state_byowner() local
673 list_for_each_entry_rcu(state, &nfsi->open_states, inode_states) { in __nfs4_find_state_byowner()
694 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_get_open_state() local
711 list_add_rcu(&state->inode_states, &nfsi->open_states); in nfs4_get_open_state()
1395 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_find_state_and_recover() local
1403 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_inode_find_state_and_recover()
1432 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_state_mark_open_context_bad() local
1438 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_mark_open_context_bad()
1458 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_reclaim_locks() local
1471 down_write(&nfsi->rwsem); in nfs4_reclaim_locks()
[all …]
H A Dnfs4proc.c1226 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_update_changeattr_locked() local
1256 nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); in nfs4_update_changeattr_locked()
1258 nfsi->attrtimeo_timestamp = jiffies; in nfs4_update_changeattr_locked()
1259 nfsi->read_cache_jiffies = timestamp; in nfs4_update_changeattr_locked()
1260 nfsi->attr_gencount = nfs_inc_attr_generation_counter(); in nfs4_update_changeattr_locked()
1261 nfsi->cache_validity &= ~NFS_INO_INVALID_CHANGE; in nfs4_update_changeattr_locked()
2134 struct nfs_inode *nfsi = NFS_I(state->inode); in nfs4_state_find_open_context_mode() local
2138 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs4_state_find_open_context_mode()
6036 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_set_cached_acl() local
6039 kfree(nfsi->nfs4_acl); in nfs4_set_cached_acl()
[all …]
H A Dnfs4trace.h1704 const struct nfs_inode *nfsi = NFS_I(inode);
1706 hdr->args.fh : &nfsi->fh;
1776 const struct nfs_inode *nfsi = NFS_I(inode);
1778 hdr->args.fh : &nfsi->fh;
1846 const struct nfs_inode *nfsi = NFS_I(inode);
1848 data->args.fh : &nfsi->fh;
/linux/Documentation/filesystems/nfs/
H A Dpnfs.rst18 segments in nfsi->layout, of type struct pnfs_layout_hdr.