Home
last modified time | relevance | path

Searched refs:NFS_SERVER (Results 1 – 25 of 34) sorted by relevance

12

/linux/fs/nfs/
H A Dnfs42proc.c29 struct nfs_client *clp = (NFS_SERVER(file_inode(filep)))->nfs_client; in nfs42_set_netaddr()
50 struct nfs_server *server = NFS_SERVER(inode); in _nfs42_proc_fallocate()
105 struct nfs_server *server = NFS_SERVER(inode); in nfs42_proc_fallocate()
158 NFS_SERVER(inode)->caps &= ~(NFS_CAP_ALLOCATE | in nfs42_proc_allocate()
184 NFS_SERVER(inode)->caps &= ~(NFS_CAP_DEALLOCATE | in nfs42_proc_deallocate()
214 NFS_SERVER(inode)->caps &= ~NFS_CAP_ZERO_RANGE; in nfs42_proc_zero_range()
423 struct nfs_server *dst_server = NFS_SERVER(dst_inode); in _nfs42_proc_copy()
424 struct nfs_server *src_server = NFS_SERVER(src_inode); in _nfs42_proc_copy()
517 struct nfs_server *server = NFS_SERVER(file_inode(dst)); in nfs42_proc_copy()
642 struct nfs_server *dst_server = NFS_SERVER(file_inode(dst)); in nfs42_do_offload_cancel_async()
[all …]
H A Dnfs4proc.c1220 switch (NFS_SERVER(inode)->change_attr_type) { in nfs4_update_changeattr_locked()
1368 struct nfs_server *server = NFS_SERVER(dir); in nfs4_opendata_alloc()
1728 if (!nfs4_has_session(NFS_SERVER(state->inode)->nfs_client)) in nfs_set_open_stateid_locked()
1830 struct nfs_server *server = NFS_SERVER(state->inode); in update_open_stateid()
1972 NFS_SERVER(inode)->nfs_client->cl_hostname); in nfs4_process_delegation()
2263 struct nfs_server *server = NFS_SERVER(state->inode); in nfs4_do_open_reclaim()
2351 struct nfs_server *server = NFS_SERVER(state->inode); in nfs4_open_delegation_recall()
2433 struct nfs_server *server = NFS_SERVER(d_inode(data->dir)); in _nfs4_proc_open_confirm()
2598 struct nfs_server *server = NFS_SERVER(dir); in nfs4_run_open_task()
2659 nfs_fattr_map_and_free_names(NFS_SERVER(dir), &data->f_attr); in _nfs4_recover_proc_open()
[all …]
H A Dpnfs.c273 struct pnfs_layoutdriver_type *ld = NFS_SERVER(ino)->pnfs_curr_ld; in pnfs_alloc_layout_hdr()
280 struct nfs_server *server = NFS_SERVER(lo->plh_inode); in pnfs_free_layout_hdr()
391 rpc_wake_up(&NFS_SERVER(lo->plh_inode)->roc_rpcwaitq); in pnfs_clear_layoutreturn_waitbit()
571 NFS_SERVER(inode)->pnfs_curr_ld->free_lseg(lseg); in pnfs_free_lseg()
726 struct nfs_server *server = NFS_SERVER(lo->plh_inode); in pnfs_mark_matching_lsegs_invalid()
1015 server = NFS_SERVER(lo->plh_inode); in pnfs_layout_bulk_list_reboot()
1117 server = NFS_SERVER(inode); in pnfs_find_server()
1120 server = NFS_SERVER(parent_dir->d_inode); in pnfs_find_server()
1337 args->layout_type = NFS_SERVER(inode)->pnfs_curr_ld->id; in pnfs_init_layoutreturn_args()
1354 struct pnfs_layoutdriver_type *ld = NFS_SERVER(ino)->pnfs_curr_ld; in pnfs_send_layoutreturn()
[all …]
H A Diostat.h32 nfs_inc_server_stats(NFS_SERVER(inode), stat); in nfs_inc_stats()
46 nfs_add_server_stats(NFS_SERVER(inode), stat, addend); in nfs_add_stats()
H A Dnfs42.h37 struct nfs_client *c_in = (NFS_SERVER(file_inode(in)))->nfs_client; in nfs42_files_from_same_server()
38 struct nfs_client *c_out = (NFS_SERVER(file_inode(out)))->nfs_client; in nfs42_files_from_same_server()
H A Dpnfs.h491 struct pnfs_layoutdriver_type *ld = NFS_SERVER(inode)->pnfs_curr_ld; in pnfs_get_ds_info()
573 if (!pnfs_enabled_sb(NFS_SERVER(inode))) in pnfs_ld_layoutret_on_setattr()
575 return NFS_SERVER(inode)->pnfs_curr_ld->flags & in pnfs_ld_layoutret_on_setattr()
582 if (!pnfs_enabled_sb(NFS_SERVER(inode))) in pnfs_ld_read_whole_page()
584 return NFS_SERVER(inode)->pnfs_curr_ld->flags & PNFS_READ_WHOLE_PAGE; in pnfs_ld_read_whole_page()
590 if (!pnfs_enabled_sb(NFS_SERVER(inode))) in pnfs_sync_inode()
592 return NFS_SERVER(inode)->pnfs_curr_ld->sync(inode, datasync); in pnfs_sync_inode()
607 struct nfs_server *nfss = NFS_SERVER(ino); in pnfs_return_layout()
H A Ddelegation.c287 atomic_long_inc(&NFS_SERVER(inode)->nr_active_delegations); in nfs_inode_reclaim_delegation()
438 struct nfs_server *server = NFS_SERVER(inode); in nfs_inode_set_delegation()
553 struct nfs_server *server = NFS_SERVER(inode); in nfs_end_delegation_return()
775 struct nfs_server *server = NFS_SERVER(inode); in nfs_inode_evict_delegation()
866 struct nfs_server *server = NFS_SERVER(inode); in nfs4_inode_return_delegation_on_close()
908 if (!nfs4_has_session(NFS_SERVER(inode)->nfs_client) || in nfs4_inode_make_writeable()
1045 nfs_mark_delegation_revoked(NFS_SERVER(inode), delegation); in nfs_revoke_delegation()
1077 nfs_mark_delegation_revoked(NFS_SERVER(inode), delegation); in nfs_delegation_mark_returned()
1080 if (nfs_detach_delegation(NFS_I(inode), delegation, NFS_SERVER(inode))) in nfs_delegation_mark_returned()
1160 struct nfs_server *server = NFS_SERVER(inode); in nfs_async_inode_return_delegation()
[all …]
H A Dfile.c105 struct nfs_server *server = NFS_SERVER(inode); in nfs_revalidate_file_size()
578 struct nfs_client *cl = NFS_SERVER(inode)->nfs_client; in nfs_swap_activate()
611 struct nfs_client *cl = NFS_SERVER(inode)->nfs_client; in nfs_swap_deactivate()
701 unsigned int mntflags = NFS_SERVER(inode)->flags; in nfs_file_write()
908 if (NFS_SERVER(inode)->flags & NFS_MOUNT_LOCAL_FCNTL) in nfs_lock()
942 if (NFS_SERVER(inode)->flags & NFS_MOUNT_LOCAL_FLOCK) in nfs_flock()
H A Ddir.c86 ctx->dtsize = min(NFS_SERVER(dir)->dtsize, NFS_INIT_DTSIZE); in alloc_nfs_open_dir_context()
183 struct nfs_server *server = NFS_SERVER(file_inode(desc->file)); in nfs_set_dtsize()
611 NFS_SERVER(inode)->caps &= ~NFS_CAP_READDIRPLUS; in nfs_readdir_xdr_filler()
669 if (NFS_SERVER(dir)->flags & NFS_MOUNT_FORCE_RDIRPLUS) in nfs_use_readdirplus()
950 entry->fattr = nfs_alloc_fattr_with_label(NFS_SERVER(inode)); in nfs_readdir_xdr_to_array()
951 entry->server = NFS_SERVER(inode); in nfs_readdir_xdr_to_array()
1555 if (NFS_SERVER(dir)->flags & NFS_MOUNT_LOOKUP_CACHE_NONE) in nfs_check_verifier()
1564 if (__nfs_revalidate_inode(NFS_SERVER(dir), dir) < 0) in nfs_check_verifier()
1595 struct nfs_server *server = NFS_SERVER(inode); in nfs_lookup_verify_inode()
1661 if (NFS_SERVER(dir)->flags & NFS_MOUNT_LOOKUP_CACHE_NONEG) in nfs_neg_need_reval()
[all …]
H A Dwrite.c288 struct nfs_server *nfss = NFS_SERVER(folio->mapping->host); in nfs_folio_set_writeback()
297 struct nfs_server *nfss = NFS_SERVER(folio->mapping->host); in nfs_folio_end_writeback()
655 unsigned int mntflags = NFS_SERVER(inode)->flags; in nfs_writepages()
656 struct nfs_server *nfss = NFS_SERVER(inode); in nfs_writepages()
1174 struct rpc_auth *auth = NFS_SERVER(inode)->client->cl_auth; in nfs_ctx_key_to_expire()
1255 unsigned int mntflags = NFS_SERVER(inode)->flags; in nfs_can_extend_write()
1402 struct nfs_server *server = NFS_SERVER(inode); in nfs_pageio_init_write()
1426 mirror->pg_bsize = NFS_SERVER(pgio->pg_inode)->wsize; in nfs_pageio_reset_write_mds()
1528 NFS_SERVER(inode)->nfs_client->cl_hostname, in nfs_writeback_done()
1775 if (NFS_SERVER(inode)->nfs_client->cl_minorversion) in nfs_commit_list()
[all …]
H A Dpagelist.c177 rpc_sleep_on(&NFS_SERVER(inode)->uoc_rpcwaitq, task, NULL); in nfs_async_iocounter_wait()
182 rpc_wake_up_queued_task(&NFS_SERVER(inode)->uoc_rpcwaitq, task); in nfs_async_iocounter_wait()
567 rpc_wake_up(&NFS_SERVER(d_inode(ctx->dentry))->uoc_rpcwaitq); in nfs_clear_request()
767 return nfs_local_doio(NFS_SERVER(hdr->inode)->nfs_client, in nfs_initiate_pgio()
963 struct nfs_client *clp = NFS_SERVER(hdr->inode)->nfs_client; in nfs_generic_pg_pgios()
970 if (NFS_SERVER(hdr->inode)->nfs_client->cl_minorversion) in nfs_generic_pg_pgios()
1127 if (NFS_SERVER(desc->pg_inode)->flags & NFS_MOUNT_SOFTERR) in nfs_pageio_do_add_request()
H A Dread.c68 struct nfs_server *server = NFS_SERVER(inode); in nfs_pageio_init_read()
110 mirror->pg_bsize = NFS_SERVER(pgio->pg_inode)->rsize; in nfs_pageio_reset_read_mds()
291 struct nfs_server *server = NFS_SERVER(inode); in nfs_read_add_folio()
H A Dinode.c783 fattr = nfs_alloc_fattr_with_label(NFS_SERVER(inode)); in nfs_setattr()
954 u64 fattr_valid = NFS_SERVER(inode)->fattr_valid; in nfs_get_valid_attrmask()
986 struct nfs_server *server = NFS_SERVER(inode); in nfs_getattr()
1081 stat->blksize = NFS_SERVER(inode)->dtsize; in nfs_getattr()
1199 if (NFS_SERVER(inode)->flags & NFS_MOUNT_NOCTO) in nfs_close_context()
1399 fattr = nfs_alloc_fattr_with_label(NFS_SERVER(inode)); in __nfs_revalidate_inode()
1466 return __nfs_revalidate_inode(NFS_SERVER(inode), inode); in nfs_revalidate_inode()
1597 int ret = __nfs_revalidate_inode(NFS_SERVER(inode), inode); in nfs_revalidate_mapping()
1963 switch (NFS_SERVER(inode)->change_attr_type) { in nfs_inode_attrs_cmp()
1997 enum nfs4_change_attr_type ctype = NFS_SERVER(inode)->change_attr_type; in nfs_inode_finish_partial_attr_update()
[all …]
H A Dnfs3acl.c48 struct nfs_server *server = NFS_SERVER(inode); in nfs3_get_acl()
164 struct nfs_server *server = NFS_SERVER(inode); in __nfs3_proc_setacls()
H A Dnfs40proc.c222 struct nfs_server *server = NFS_SERVER(inode); in _nfs40_proc_fsid_present()
223 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; in _nfs40_proc_fsid_present()
H A Dnfs3proc.c216 if (NFS_SERVER(inode)->flags & NFS_MOUNT_SOFTREVAL) in nfs3_proc_lookupp()
893 struct nfs_server *server = NFS_SERVER(inode); in nfs3_read_done()
916 hdr->args.replen = NFS_SERVER(hdr->inode)->read_hdrsize; in nfs3_proc_read_setup()
937 nfs3_localio_probe(NFS_SERVER(inode)); in nfs3_write_done()
1022 status = nlmclnt_proc(NFS_SERVER(inode)->nlm_host, cmd, fl, l_ctx); in nfs3_proc_lock()
H A Dnfs4file.c157 if (count <= 2 * NFS_SERVER(file_inode(file_in))->rsize) in __nfs4_copy_file_range()
252 struct nfs_server *server = NFS_SERVER(dst_inode); in nfs42_remap_file_range()
H A Dfscache.h122 if (NFS_SERVER(inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_update_auxdata()
H A Dcallback_proc.c304 if (NFS_SERVER(ino)->pnfs_curr_ld->return_range) { in initiate_file_draining()
305 NFS_SERVER(ino)->pnfs_curr_ld->return_range(lo, in initiate_file_draining()
H A Dfscache.c166 struct nfs_server *nfss = NFS_SERVER(inode); in nfs_fscache_init_inode()
H A Ddirect.c348 size_t rsize = max_t(size_t, NFS_SERVER(inode)->rsize, PAGE_SIZE); in nfs_direct_read_schedule_iovec()
872 size_t wsize = max_t(size_t, NFS_SERVER(inode)->wsize, PAGE_SIZE); in nfs_direct_write_schedule_iovec()
/linux/include/linux/
H A Dnfs_fs.h364 static inline struct nfs_server *NFS_SERVER(const struct inode *inode) in NFS_SERVER() function
371 return NFS_SERVER(inode)->client; in NFS_CLIENT()
376 return NFS_SERVER(inode)->nfs_client->rpc_ops; in NFS_PROTO()
381 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MINATTRTIMEO()
387 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MAXATTRTIMEO()
421 return NFS_SERVER(inode)->caps & cap; in nfs_server_capable()
/linux/fs/nfs/filelayout/
H A Dfilelayout.c312 rpc_count_iostats(task, NFS_SERVER(hdr->inode)->client->cl_metrics); in filelayout_read_count_stats()
408 rpc_count_iostats(task, NFS_SERVER(hdr->inode)->client->cl_metrics); in filelayout_write_count_stats()
425 rpc_count_iostats(task, NFS_SERVER(cdata->inode)->client->cl_metrics); in filelayout_commit_count_stats()
551 d = nfs4_find_get_deviceid(NFS_SERVER(lo->plh_inode), &fl->deviceid, in filelayout_check_deviceid()
H A Dfilelayoutdev.c268 struct nfs_server *s = NFS_SERVER(lseg->pls_layout->plh_inode); in nfs4_fl_prepare_ds()
/linux/fs/nfs/flexfilelayout/
H A Dflexfilelayoutdev.c332 node = nfs4_find_get_deviceid(NFS_SERVER(lo->plh_inode), in ff_layout_init_mirror_ds()
378 struct nfs_server *s = NFS_SERVER(ino); in nfs4_ff_layout_prepare_ds()

12