Home
last modified time | relevance | path

Searched refs:nfss (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/fs/nfs/
Dfscache.c113 struct nfs_server *nfss = NFS_SB(sb); in nfs_fscache_get_super_cookie() local
117 nfss->fscache_key = NULL; in nfs_fscache_get_super_cookie()
118 nfss->fscache = NULL; in nfs_fscache_get_super_cookie()
119 if (!(nfss->options & NFS_OPTION_FSCACHE)) in nfs_fscache_get_super_cookie()
130 key->nfs_client = nfss->nfs_client; in nfs_fscache_get_super_cookie()
132 key->key.nfs_server.flags = nfss->flags; in nfs_fscache_get_super_cookie()
133 key->key.nfs_server.rsize = nfss->rsize; in nfs_fscache_get_super_cookie()
134 key->key.nfs_server.wsize = nfss->wsize; in nfs_fscache_get_super_cookie()
135 key->key.nfs_server.acregmin = nfss->acregmin; in nfs_fscache_get_super_cookie()
136 key->key.nfs_server.acregmax = nfss->acregmax; in nfs_fscache_get_super_cookie()
[all …]
Dsuper.c535 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid() argument
538 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address; in nfs_show_mountd_netid()
543 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
553 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
567 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument
570 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; in nfs_show_mountd_options()
572 if (nfss->flags & NFS_MOUNT_LEGACY_INTERFACE) in nfs_show_mountd_options()
591 if (nfss->mountd_version || showdefaults) in nfs_show_mountd_options()
592 seq_printf(m, ",mountvers=%u", nfss->mountd_version); in nfs_show_mountd_options()
593 if ((nfss->mountd_port && in nfs_show_mountd_options()
[all …]
Dpnfs.h432 static inline int pnfs_enabled_sb(struct nfs_server *nfss) in pnfs_enabled_sb() argument
434 return nfss->pnfs_curr_ld != NULL; in pnfs_enabled_sb()
546 struct nfs_server *nfss = NFS_SERVER(ino); in pnfs_return_layout() local
548 if (pnfs_enabled_sb(nfss) && nfsi->layout) { in pnfs_return_layout()
558 struct nfs_server *nfss) in pnfs_use_threshold() argument
560 return (dst && src && src->bm != 0 && nfss->pnfs_curr_ld && in pnfs_use_threshold()
561 nfss->pnfs_curr_ld->id == src->l_type); in pnfs_use_threshold()
787 struct nfs_server *nfss) in pnfs_use_threshold() argument
Dpnfs.c96 unset_pnfs_layoutdriver(struct nfs_server *nfss) in unset_pnfs_layoutdriver() argument
98 if (nfss->pnfs_curr_ld) { in unset_pnfs_layoutdriver()
99 if (nfss->pnfs_curr_ld->clear_layoutdriver) in unset_pnfs_layoutdriver()
100 nfss->pnfs_curr_ld->clear_layoutdriver(nfss); in unset_pnfs_layoutdriver()
102 if (atomic_dec_and_test(&nfss->nfs_client->cl_mds_count)) in unset_pnfs_layoutdriver()
103 nfs4_deviceid_purge_client(nfss->nfs_client); in unset_pnfs_layoutdriver()
104 module_put(nfss->pnfs_curr_ld->owner); in unset_pnfs_layoutdriver()
106 nfss->pnfs_curr_ld = NULL; in unset_pnfs_layoutdriver()
2669 struct nfs_server *nfss = NFS_SERVER(inode); in pnfs_try_to_write_data() local
2675 trypnfs = nfss->pnfs_curr_ld->write_pagelist(hdr, how); in pnfs_try_to_write_data()
[all …]
Dwrite.c345 struct nfs_server *nfss = NFS_SERVER(inode); in nfs_set_page_writeback() local
350 if (atomic_long_inc_return(&nfss->writeback) > in nfs_set_page_writeback()
358 struct nfs_server *nfss = NFS_SERVER(inode); in nfs_end_page_writeback() local
367 if (atomic_long_dec_return(&nfss->writeback) < NFS_CONGESTION_OFF_THRESH) in nfs_end_page_writeback()
1835 struct nfs_server *nfss; in nfs_commit_release_pages() local
1875 nfss = NFS_SERVER(data->inode); in nfs_commit_release_pages()
1876 if (atomic_long_read(&nfss->writeback) < NFS_CONGESTION_OFF_THRESH) in nfs_commit_release_pages()
/Linux-v5.4/include/linux/
Dnfs_fs.h281 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MINATTRTIMEO() local
282 return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; in NFS_MINATTRTIMEO()
287 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MAXATTRTIMEO() local
288 return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; in NFS_MAXATTRTIMEO()