Home
last modified time | relevance | path

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

12

/Linux-v5.15/fs/nfs/
Ddelegation.c100 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs4_get_valid_delegation()
114 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs4_do_check_delegation()
180 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_opens()
239 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs_inode_reclaim_delegation()
377 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_detach_delegation()
437 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_set_delegation()
499 if (NFS_I(inode)->cache_validity & NFS_INO_INVALID_CHANGE) in nfs_inode_set_delegation()
580 if (inode && list_empty(&NFS_I(inode)->open_files)) in nfs_delegation_need_return()
618 delegation = rcu_dereference(NFS_I(place_holder)->delegation); in nfs_server_return_marked_delegations()
648 delegation = nfs_start_delegation_return_locked(NFS_I(inode)); in nfs_server_return_marked_delegations()
[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.h134 if (NFS_I(inode)->fscache) in nfs_readpage_from_fscache()
148 if (NFS_I(inode)->fscache) in nfs_readpages_from_fscache()
171 fscache_invalidate(NFS_I(inode)->fscache); in nfs_fscache_invalidate()
179 fscache_wait_on_invalidate(NFS_I(inode)->fscache); in nfs_fscache_wait_on_invalidate()
Dinode.c124 WARN_ON_ONCE(!list_empty(&NFS_I(inode)->open_files)); in nfs_clear_inode()
162 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_flags_invalid()
197 struct nfs_inode *nfsi = NFS_I(inode); in nfs_set_cache_invalid()
225 struct nfs_inode *nfsi = NFS_I(inode); in nfs_zap_caches_locked()
273 NFS_I(inode)->cache_validity &= ~NFS_INO_INVALID_ACL; in nfs_zap_acl_cache()
292 set_bit(NFS_INO_STALE, &NFS_I(inode)->flags); in nfs_set_inode_stale_locked()
349 NFS_I(inode)->cache_validity &= ~NFS_INO_INVALID_LABEL; in nfs_clear_label_invalid()
462 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fhget()
672 NFS_I(inode)->cache_validity &= ~(NFS_INO_INVALID_DATA | in nfs_vmtruncate()
[all …]
Dfscache.c248 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_init_inode()
269 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_clear_inode()
308 struct nfs_inode *nfsi = NFS_I(inode); in nfs_fscache_open_file()
326 set_bit(NFS_INO_FSCACHE, &NFS_I(inode)->flags); in nfs_fscache_open_file()
343 cookie, page, NFS_I(page->mapping->host)); in nfs_fscache_release_page()
366 cookie, page, NFS_I(inode)); in __nfs_fscache_invalidate_page()
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()
Ddir.c73 struct nfs_inode *nfsi = NFS_I(dir); in alloc_nfs_open_dir_context()
445 struct nfs_inode *nfsi = NFS_I(file_inode(desc->file)); in nfs_readdir_search_for_cookie()
538 clear_bit(NFS_INO_ADVISE_RDPLUS, &NFS_I(inode)->flags); in nfs_readdir_xdr_filler()
580 nfsi = NFS_I(inode); in nfs_same_file()
593 if (test_and_clear_bit(NFS_INO_ADVISE_RDPLUS, &NFS_I(dir)->flags)) in nfs_use_readdirplus()
607 struct nfs_inode *nfsi = NFS_I(dir); in nfs_advise_use_readdirplus()
624 struct nfs_inode *nfsi = NFS_I(dir); in nfs_force_use_readdirplus()
913 struct nfs_inode *nfsi = NFS_I(inode); in find_and_lock_cache_page()
1079 struct nfs_inode *nfsi = NFS_I(inode); in nfs_readdir()
1229 NFS_I(dir)->cache_change_attribute += 2; in nfs_force_lookup_revalidate()
[all …]
Dwrite.c157 atomic_long_inc(&NFS_I(inode)->nrequests); in nfs_page_set_inode_ref()
214 struct nfs_inode *nfsi = NFS_I(inode); in nfs_page_find_swap_request()
292 NFS_I(inode)->cache_validity &= ~NFS_INO_INVALID_SIZE; in nfs_grow_file()
484 atomic_long_dec(&NFS_I(inode)->nrequests); in nfs_destroy_unlinked_subrequests()
755 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_add_request()
789 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_remove_request()
887 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in nfs_request_add_commit_list()
889 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in nfs_request_add_commit_list()
921 cinfo->mds = &NFS_I(inode)->commit_info; in nfs_init_cinfo_from_inode()
968 mutex_lock(&NFS_I(inode)->commit_mutex); in nfs_clear_request_commit()
[all …]
Dpnfs_nfs.c249 lockdep_assert_held(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_bucket_scan_ds_commit_list()
336 lockdep_assert_held(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_generic_recover_commit_reqs()
442 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_generic_retry_commit()
444 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_generic_retry_commit()
464 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_bucket_alloc_ds_commits()
474 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_bucket_alloc_ds_commits()
478 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_bucket_alloc_ds_commits()
1162 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_layout_mark_request_commit()
1180 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_layout_mark_request_commit()
1184 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in pnfs_layout_mark_request_commit()
Dnfstrace.h113 const struct nfs_inode *nfsi = NFS_I(inode);
150 const struct nfs_inode *nfsi = NFS_I(inode);
238 const struct nfs_inode *nfsi = NFS_I(inode);
898 const struct nfs_inode *nfsi = NFS_I(inode);
940 const struct nfs_inode *nfsi = NFS_I(inode);
987 const struct nfs_inode *nfsi = NFS_I(inode);
1035 const struct nfs_inode *nfsi = NFS_I(inode);
1085 const struct nfs_inode *nfsi = NFS_I(inode);
1130 const struct nfs_inode *nfsi = NFS_I(inode);
1224 const struct nfs_inode *nfsi = NFS_I(inode);
[all …]
Dfile.c390 NFS_I(mapping->host)->write_io += copied; in nfs_write_end()
452 nfsi = NFS_I(mapping->host); in nfs_check_dirty_writeback()
478 struct nfs_inode *nfsi = NFS_I(inode); in nfs_launder_page()
558 nfs_fscache_wait_on_page_write(NFS_I(inode), page); in nfs_vm_page_mkwrite()
560 wait_on_bit_action(&NFS_I(inode)->flags, NFS_INO_INVALIDATING, in nfs_vm_page_mkwrite()
Dpnfs.c285 struct nfs_inode *nfsi = NFS_I(lo->plh_inode); in pnfs_detach_layout_hdr()
415 lo = NFS_I(inode)->layout; in nfs4_layout_refresh_old_stateid()
803 lo = NFS_I(inode)->layout; in pnfs_layout_add_bulk_destroy_list()
1139 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_clear_layoutcommit()
1318 struct nfs_inode *nfsi = NFS_I(ino); in _pnfs_return_layout()
1385 lo = NFS_I(inode)->layout; in pnfs_commit_and_return_layout()
1410 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_roc()
1591 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_wait_on_layoutreturn()
1735 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_find_alloc_layout()
1838 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_within_mdsthreshold()
[all …]
Dnfs42xattr.c349 nfsi = NFS_I(inode); in nfs4_xattr_cache_unlink()
432 nfsi = NFS_I(inode); in nfs4_xattr_get_cache()
848 NFS_I(inode)->xattr_cache = NULL; in cache_lru_isolate()
849 NFS_I(inode)->cache_validity &= ~NFS_INO_INVALID_XATTR; in cache_lru_isolate()
Dnfs42proc.c731 lo = NFS_I(inode)->layout; in nfs42_layoutstat_prepare()
758 pnfs_destroy_layout(NFS_I(inode)); in nfs42_layoutstat_done()
766 lo = NFS_I(inode)->layout; in nfs42_layoutstat_done()
785 lo = NFS_I(inode)->layout; in nfs42_layoutstat_done()
817 pnfs_put_layout_hdr(NFS_I(data->args.inode)->layout); in nfs42_layoutstat_release()
819 clear_bit(NFS_INO_LAYOUTSTATS, &NFS_I(data->args.inode)->flags); in nfs42_layoutstat_release()
928 pnfs_destroy_layout(NFS_I(inode)); in nfs42_layouterror_done()
Ddirect.c486 NFS_I(inode)->read_io += count; in nfs_file_direct_read()
531 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in nfs_direct_write_scan_commit_list()
534 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in nfs_direct_write_scan_commit_list()
806 NFS_I(inode)->write_io += iov_iter_count(iter); in nfs_direct_write_schedule_iovec()
Dpnfs.h428 return NFS_I(inode)->layout != NULL; in nfs_have_layout()
597 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_layoutcommit_outstanding()
605 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_return_layout()
Dnfs4super.c70 pnfs_destroy_layout_final(NFS_I(inode)); in nfs4_evict_inode()
Dcallback_proc.c174 nfsi = NFS_I(lo->plh_inode); in nfs_layout_find_inode_by_fh()
263 lo = NFS_I(ino)->layout; in initiate_file_draining()
Dnfs4state.c698 struct nfs_inode *nfsi = NFS_I(inode); in __nfs4_find_state_byowner()
722 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_get_open_state()
1435 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_find_state_and_recover()
1470 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_state_mark_open_context_bad()
1494 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_reclaim_locks()
Dread.c88 NFS_I(pgio->pg_inode)->read_io += pgm->pg_bytes_written; in nfs_pageio_complete_read()
Dnfs4proc.c296 cache_validity = READ_ONCE(NFS_I(inode)->cache_validity) | flags; in nfs4_bitmap_copy_adjust()
480 pnfs_destroy_layout(NFS_I(inode)); in nfs4_do_handle_exception()
1208 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_update_changeattr_locked()
1802 struct nfs_inode *nfsi = NFS_I(state->inode); in update_open_stateid()
1938 delegation = rcu_dereference(NFS_I(state->inode)->delegation); in nfs4_opendata_check_deleg()
2089 struct nfs_inode *nfsi = NFS_I(state->inode); in nfs4_state_find_open_context_mode()
2208 delegation = rcu_dereference(NFS_I(state->inode)->delegation); in _nfs4_do_open_reclaim()
2784 if (rcu_access_pointer(NFS_I(state->inode)->delegation) != NULL) in nfs40_clear_delegation_stateid()
2845 delegation = rcu_dereference(NFS_I(state->inode)->delegation); in nfs41_check_delegation_stateid()
5474 unsigned long cache_validity = READ_ONCE(NFS_I(inode)->cache_validity); in nfs4_bitmask_set()
[all …]
/Linux-v5.15/include/linux/
Dnfs_fs.h280 static inline struct nfs_inode *NFS_I(const struct inode *inode) in NFS_I() function
292 return &NFS_I(inode)->fh; in NFS_FH()
324 return test_bit(NFS_INO_STALE, &NFS_I(inode)->flags); in NFS_STALE()
330 return NFS_I(inode)->fscache; in nfs_i_fscache()
338 return NFS_I(inode)->fileid; in NFS_FILEID()
343 NFS_I(inode)->fileid = fileid; in set_nfs_fileid()
348 struct nfs_inode *nfsi = NFS_I(inode); in nfs_mark_for_revalidate()
374 return NFS_I(dir)->cache_change_attribute; in nfs_save_change_attribute()
576 return atomic_long_read(&NFS_I(inode)->nrequests) != 0; in nfs_have_writebacks()
/Linux-v5.15/fs/nfs/flexfilelayout/
Dflexfilelayout.c879 NFS_I(pgio->pg_inode)->layout, in ff_layout_pg_init_read()
944 NFS_I(pgio->pg_inode)->layout, in ff_layout_pg_init_write()
974 NFS_I(pgio->pg_inode)->layout, in ff_layout_pg_get_mirror_count_write()
1044 IOMODE_RW, NFS_I(hdr->inode)->layout, in ff_layout_reset_write()
1080 IOMODE_READ, NFS_I(hdr->inode)->layout, in ff_layout_reset_read()
1132 pnfs_destroy_layout(NFS_I(inode)); in ff_layout_async_handle_error_v4()
1347 (unsigned long long) NFS_I(inode)->layout->plh_lwb); in ff_layout_set_layoutcommit()
1808 IOMODE_READ, NFS_I(hdr->inode)->layout, lseg); in ff_layout_read_pagelist()
1876 IOMODE_RW, NFS_I(hdr->inode)->layout, lseg); in ff_layout_write_pagelist()
1962 struct pnfs_layout_hdr *layout = NFS_I(inode)->layout; in ff_layout_get_ds_info()
[all …]
/Linux-v5.15/fs/nfs/filelayout/
Dfilelayout.c173 pnfs_destroy_layout(NFS_I(inode)); in filelayout_async_handle_error()
243 (unsigned long) NFS_I(hdr->inode)->layout->plh_lwb); in filelayout_set_layoutcommit()
847 lo = NFS_I(ino)->layout; in fl_pnfs_update_layout()
1062 struct pnfs_layout_hdr *layout = NFS_I(inode)->layout; in filelayout_get_ds_info()
/Linux-v5.15/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