Home
last modified time | relevance | path

Searched refs:NFS_I (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v5.4/fs/nfs/
Ddelegation.c60 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs4_get_valid_delegation()
74 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs4_do_check_delegation()
140 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_opens()
199 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs_inode_reclaim_delegation()
324 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_detach_delegation()
362 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_set_delegation()
420 if (NFS_I(inode)->cache_validity & (NFS_INO_INVALID_ATTR|NFS_INO_INVALID_ATIME)) in nfs_inode_set_delegation()
421 NFS_I(inode)->cache_validity |= NFS_INO_REVAL_FORCED; in nfs_inode_set_delegation()
438 struct nfs_inode *nfsi = NFS_I(inode); in nfs_end_delegation_return()
481 if (inode && list_empty(&NFS_I(inode)->open_files)) in nfs_delegation_need_return()
[all …]
Dio.c45 struct nfs_inode *nfsi = NFS_I(inode); in nfs_start_io_read()
81 nfs_block_o_direct(NFS_I(inode), inode); in nfs_start_io_write()
125 struct nfs_inode *nfsi = NFS_I(inode); in nfs_start_io_direct()
Dfscache.h132 if (NFS_I(inode)->fscache) in nfs_readpage_from_fscache()
146 if (NFS_I(inode)->fscache) in nfs_readpages_from_fscache()
169 fscache_invalidate(NFS_I(inode)->fscache); in nfs_fscache_invalidate()
177 fscache_wait_on_invalidate(NFS_I(inode)->fscache); in nfs_fscache_wait_on_invalidate()
Dinode.c125 WARN_ON_ONCE(!list_empty(&NFS_I(inode)->open_files)); in nfs_clear_inode()
163 struct nfs_inode *nfsi = NFS_I(inode); in nfs_attribute_timeout()
170 unsigned long cache_validity = READ_ONCE(NFS_I(inode)->cache_validity); in nfs_check_cache_invalid_delegated()
181 unsigned long cache_validity = READ_ONCE(NFS_I(inode)->cache_validity); in nfs_check_cache_invalid_not_delegated()
200 struct nfs_inode *nfsi = NFS_I(inode); in nfs_set_cache_invalid()
223 struct nfs_inode *nfsi = NFS_I(inode); in nfs_zap_caches_locked()
231 memset(NFS_I(inode)->cookieverf, 0, sizeof(NFS_I(inode)->cookieverf)); in nfs_zap_caches_locked()
270 NFS_I(inode)->cache_validity &= ~NFS_INO_INVALID_ACL; in nfs_zap_acl_cache()
289 set_bit(NFS_INO_STALE, &NFS_I(inode)->flags); in nfs_invalidate_inode()
338 NFS_I(inode)->cache_validity &= ~NFS_INO_INVALID_LABEL; in nfs_clear_label_invalid()
[all …]
Dpnfs_nfs.c100 lockdep_assert_held(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_generic_scan_ds_commit_list()
123 lockdep_assert_held(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_generic_scan_commit_lists()
143 lockdep_assert_held(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_generic_recover_commit_reqs()
169 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_generic_retry_commit()
179 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_generic_retry_commit()
182 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_generic_retry_commit()
184 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_generic_retry_commit()
224 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_fetch_commit_bucket_list()
230 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_fetch_commit_bucket_list()
936 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_layout_mark_request_commit()
[all …]
Ddir.c73 struct nfs_inode *nfsi = NFS_I(dir); in alloc_nfs_open_dir_context()
271 struct nfs_inode *nfsi = NFS_I(file_inode(desc->file)); in nfs_readdir_search_for_cookie()
350 clear_bit(NFS_INO_ADVISE_RDPLUS, &NFS_I(inode)->flags); in nfs_readdir_xdr_filler()
391 nfsi = NFS_I(inode); in nfs_same_file()
404 if (test_and_clear_bit(NFS_INO_ADVISE_RDPLUS, &NFS_I(dir)->flags)) in nfs_use_readdirplus()
418 struct nfs_inode *nfsi = NFS_I(dir); in nfs_advise_use_readdirplus()
435 struct nfs_inode *nfsi = NFS_I(dir); in nfs_force_use_readdirplus()
879 clear_bit(NFS_INO_ADVISE_RDPLUS, &NFS_I(inode)->flags); in nfs_readdir()
964 NFS_I(dir)->cache_change_attribute++; in nfs_force_lookup_revalidate()
1332 NFS_I(inode)->attr_gencount = nfs_inc_attr_generation_counter(); in nfs_drop_nlink()
[all …]
Dunlink.c69 up_read_non_owner(&NFS_I(d_inode(dentry->d_parent))->rmdir_sem); in nfs_async_unlink_release()
122 down_read_non_owner(&NFS_I(dir)->rmdir_sem); in nfs_call_unlink()
125 up_read_non_owner(&NFS_I(dir)->rmdir_sem); in nfs_call_unlink()
147 up_read_non_owner(&NFS_I(dir)->rmdir_sem); in nfs_call_unlink()
502 NFS_I(inode)->attr_gencount = nfs_inc_attr_generation_counter(); in nfs_sillyrename()
503 NFS_I(inode)->cache_validity |= NFS_INO_INVALID_CHANGE in nfs_sillyrename()
Dfscache.c234 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_init_inode()
260 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_clear_inode()
301 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_open_file()
321 set_bit(NFS_INO_FSCACHE, &NFS_I(inode)->flags); in nfs_fscache_open_file()
338 cookie, page, NFS_I(page->mapping->host)); in nfs_fscache_release_page()
361 cookie, page, NFS_I(inode)); in __nfs_fscache_invalidate_page()
Dwrite.c189 struct nfs_inode *nfsi = NFS_I(inode); in nfs_page_find_swap_request()
237 NFS_I(inode)->cache_validity &= ~NFS_INO_INVALID_SIZE; in nfs_grow_file()
439 atomic_long_dec(&NFS_I(inode)->nrequests); in nfs_destroy_unlinked_subrequests()
571 atomic_long_inc(&NFS_I(inode)->nrequests); in nfs_lock_and_join_requests()
749 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_add_request()
786 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_remove_request()
884 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in nfs_request_add_commit_list()
886 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in nfs_request_add_commit_list()
918 cinfo->mds = &NFS_I(inode)->commit_info; in nfs_init_cinfo_from_inode()
965 mutex_lock(&NFS_I(inode)->commit_mutex); in nfs_clear_request_commit()
[all …]
Dpnfs.c285 struct nfs_inode *nfsi = NFS_I(lo->plh_inode); in pnfs_detach_layout_hdr()
380 lo = NFS_I(inode)->layout; in nfs4_layout_refresh_old_stateid()
756 lo = NFS_I(inode)->layout; in pnfs_layout_add_bulk_destroy_list()
1074 pnfs_put_layout_hdr(NFS_I(lgp->args.inode)->layout); in pnfs_layoutget_free()
1083 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_clear_layoutcommit()
1262 struct nfs_inode *nfsi = NFS_I(ino); in _pnfs_return_layout()
1327 lo = NFS_I(inode)->layout; in pnfs_commit_and_return_layout()
1352 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_roc()
1528 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_wait_on_layoutreturn()
1672 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_find_alloc_layout()
[all …]
Dfile.c392 NFS_I(mapping->host)->write_io += copied; in nfs_write_end()
454 nfsi = NFS_I(mapping->host); in nfs_check_dirty_writeback()
480 struct nfs_inode *nfsi = NFS_I(inode); in nfs_launder_page()
548 nfs_fscache_wait_on_page_write(NFS_I(inode), page); in nfs_vm_page_mkwrite()
550 wait_on_bit_action(&NFS_I(inode)->flags, NFS_INO_INVALIDATING, in nfs_vm_page_mkwrite()
Dnfstrace.h103 const struct nfs_inode *nfsi = NFS_I(inode);
140 const struct nfs_inode *nfsi = NFS_I(inode);
838 const struct nfs_inode *nfsi = NFS_I(inode);
875 const struct nfs_inode *nfsi = NFS_I(inode);
925 const struct nfs_inode *nfsi = NFS_I(inode);
967 const struct nfs_inode *nfsi = NFS_I(inode);
1009 const struct nfs_inode *nfsi = NFS_I(inode);
1046 const struct nfs_inode *nfsi = NFS_I(inode);
Dnfs42proc.c543 lo = NFS_I(inode)->layout; in nfs42_layoutstat_prepare()
570 pnfs_destroy_layout(NFS_I(inode)); in nfs42_layoutstat_done()
578 lo = NFS_I(inode)->layout; in nfs42_layoutstat_done()
597 lo = NFS_I(inode)->layout; in nfs42_layoutstat_done()
627 pnfs_put_layout_hdr(NFS_I(data->args.inode)->layout); in nfs42_layoutstat_release()
629 clear_bit(NFS_INO_LAYOUTSTATS, &NFS_I(data->args.inode)->flags); in nfs42_layoutstat_release()
738 pnfs_destroy_layout(NFS_I(inode)); in nfs42_layouterror_done()
Dread.c148 NFS_I(inode)->read_io += pgm->pg_bytes_written; in nfs_readpage_async()
254 set_bit(NFS_INO_STALE, &NFS_I(inode)->flags); in nfs_readpage_done()
450 NFS_I(inode)->read_io += pgm->pg_bytes_written; in nfs_readpages()
Ddelegation.h85 !(NFS_I(inode)->cache_validity & NFS_INO_REVAL_FORCED); in nfs_have_delegated_attributes()
Ddirect.c585 NFS_I(inode)->read_io += count; in nfs_file_direct_read()
612 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in nfs_direct_write_scan_commit_list()
618 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in nfs_direct_write_scan_commit_list()
867 NFS_I(inode)->write_io += iov_iter_count(iter); in nfs_direct_write_schedule_iovec()
Dpnfs.h400 return NFS_I(inode)->layout != NULL; in nfs_have_layout()
537 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_layoutcommit_outstanding()
545 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_return_layout()
Dcallback_proc.c50 nfsi = NFS_I(inode); in nfs4_callback_getattr()
170 nfsi = NFS_I(lo->plh_inode); in nfs_layout_find_inode_by_fh()
267 lo = NFS_I(ino)->layout; in initiate_file_draining()
Dnfs4super.c99 pnfs_destroy_layout(NFS_I(inode)); in nfs4_evict_inode()
Dnfs4proc.c287 cache_validity = READ_ONCE(NFS_I(inode)->cache_validity); in nfs4_bitmap_copy_adjust()
473 pnfs_destroy_layout(NFS_I(inode)); in nfs4_do_handle_exception()
1126 NFS_I(inode)->cache_validity |= NFS_INO_INVALID_OTHER; in nfs4_inc_nlink_locked()
1133 NFS_I(inode)->cache_validity |= NFS_INO_INVALID_OTHER; in nfs4_dec_nlink_locked()
1141 struct nfs_inode *nfsi = NFS_I(dir); in update_changeattr_locked()
1726 struct nfs_inode *nfsi = NFS_I(state->inode); in update_open_stateid()
1799 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs4_return_incompatible_delegation()
1862 delegation = rcu_dereference(NFS_I(state->inode)->delegation); in nfs4_opendata_check_deleg()
2013 struct nfs_inode *nfsi = NFS_I(state->inode); in nfs4_state_find_open_context_mode()
2132 delegation = rcu_dereference(NFS_I(state->inode)->delegation); in _nfs4_do_open_reclaim()
[all …]
Dnfs4state.c699 struct nfs_inode *nfsi = NFS_I(inode); in __nfs4_find_state_byowner()
723 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_get_open_state()
1434 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_find_state_and_recover()
1468 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_state_mark_open_context_bad()
1492 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_reclaim_locks()
/Linux-v5.4/include/linux/
Dnfs_fs.h249 static inline struct nfs_inode *NFS_I(const struct inode *inode) in NFS_I() function
261 return &NFS_I(inode)->fh; in NFS_FH()
293 return test_bit(NFS_INO_STALE, &NFS_I(inode)->flags); in NFS_STALE()
299 return NFS_I(inode)->fscache; in nfs_i_fscache()
307 return NFS_I(inode)->fileid; in NFS_FILEID()
312 NFS_I(inode)->fileid = fileid; in set_nfs_fileid()
317 struct nfs_inode *nfsi = NFS_I(inode); in nfs_mark_for_revalidate()
348 return NFS_I(dir)->cache_change_attribute; in nfs_save_change_attribute()
361 return chattr == NFS_I(dir)->cache_change_attribute; in nfs_verify_change_attribute()
554 return atomic_long_read(&NFS_I(inode)->nrequests) != 0; in nfs_have_writebacks()
/Linux-v5.4/fs/nfs/flexfilelayout/
Dflexfilelayout.c942 NFS_I(pgio->pg_inode)->layout, in ff_layout_pg_init_read()
1015 NFS_I(pgio->pg_inode)->layout, in ff_layout_pg_init_write()
1046 NFS_I(pgio->pg_inode)->layout, in ff_layout_pg_get_mirror_count_write()
1099 IOMODE_RW, NFS_I(hdr->inode)->layout, in ff_layout_reset_write()
1122 IOMODE_READ, NFS_I(hdr->inode)->layout, in ff_layout_reset_read()
1174 pnfs_destroy_layout(NFS_I(inode)); in ff_layout_async_handle_error_v4()
1386 (unsigned long long) NFS_I(inode)->layout->plh_lwb); in ff_layout_set_layoutcommit()
1842 IOMODE_READ, NFS_I(hdr->inode)->layout, lseg); in ff_layout_read_pagelist()
1910 IOMODE_RW, NFS_I(hdr->inode)->layout, lseg); in ff_layout_write_pagelist()
1996 struct pnfs_layout_hdr *layout = NFS_I(inode)->layout; in ff_layout_get_ds_info()
[all …]
/Linux-v5.4/fs/nfs/filelayout/
Dfilelayout.c172 pnfs_destroy_layout(NFS_I(inode)); in filelayout_async_handle_error()
242 (unsigned long) NFS_I(hdr->inode)->layout->plh_lwb); in filelayout_set_layoutcommit()
901 lo = NFS_I(ino)->layout; in fl_pnfs_update_layout()
1155 struct pnfs_layout_hdr *layout = NFS_I(inode)->layout; in filelayout_get_ds_info()
/Linux-v5.4/fs/nfs/blocklayout/
Dextent_tree.c558 struct pnfs_block_layout *bl = BLK_LO2EXT(NFS_I(arg->inode)->layout); in ext_tree_prepare_commit()
617 struct pnfs_block_layout *bl = BLK_LO2EXT(NFS_I(arg->inode)->layout); in ext_tree_mark_committed()

12