Home
last modified time | relevance | path

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

/linux/fs/nfs/
H A Dsuper.c347 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid() argument
350 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address; in nfs_show_mountd_netid()
355 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
365 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
379 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument
382 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; in nfs_show_mountd_options()
384 if (nfss->flags & NFS_MOUNT_LEGACY_INTERFACE) in nfs_show_mountd_options()
403 if (nfss->mountd_version || showdefaults) in nfs_show_mountd_options()
404 seq_printf(m, ",mountvers=%u", nfss->mountd_version); in nfs_show_mountd_options()
405 if ((nfss->mountd_port && in nfs_show_mountd_options()
[all …]
H A Dfs_context.c1710 struct nfs_server *nfss = fc->root->d_sb->s_fs_info; in nfs_init_fs_context() local
1711 struct net *net = nfss->nfs_client->cl_net; in nfs_init_fs_context()
1713 ctx->flags = nfss->flags; in nfs_init_fs_context()
1714 ctx->rsize = nfss->rsize; in nfs_init_fs_context()
1715 ctx->wsize = nfss->wsize; in nfs_init_fs_context()
1716 ctx->retrans = nfss->client->cl_timeout->to_retries; in nfs_init_fs_context()
1717 ctx->selected_flavor = nfss->client->cl_auth->au_flavor; in nfs_init_fs_context()
1718 ctx->acregmin = nfss->acregmin / HZ; in nfs_init_fs_context()
1719 ctx->acregmax = nfss->acregmax / HZ; in nfs_init_fs_context()
1720 ctx->acdirmin = nfss->acdirmin / HZ; in nfs_init_fs_context()
[all …]
H A Dpnfs.h473 static inline int pnfs_enabled_sb(struct nfs_server *nfss) in pnfs_enabled_sb() argument
475 return nfss->pnfs_curr_ld != NULL; in pnfs_enabled_sb()
608 struct nfs_server *nfss = NFS_SERVER(ino); in pnfs_return_layout() local
610 if (pnfs_enabled_sb(nfss) && nfsi->layout) { in pnfs_return_layout()
620 struct nfs_server *nfss) in pnfs_use_threshold() argument
622 return (dst && src && src->bm != 0 && nfss->pnfs_curr_ld && in pnfs_use_threshold()
623 nfss->pnfs_curr_ld->id == src->l_type); in pnfs_use_threshold()
878 struct nfs_server *nfss) in pnfs_use_threshold() argument
H A Dwrite.c288 struct nfs_server *nfss = NFS_SERVER(folio->mapping->host); in nfs_folio_set_writeback() local
291 if (atomic_long_inc_return(&nfss->writeback) > NFS_CONGESTION_ON_THRESH) in nfs_folio_set_writeback()
292 nfss->write_congested = 1; in nfs_folio_set_writeback()
297 struct nfs_server *nfss = NFS_SERVER(folio->mapping->host); in nfs_folio_end_writeback() local
300 if (atomic_long_dec_return(&nfss->writeback) < in nfs_folio_end_writeback()
302 nfss->write_congested = 0; in nfs_folio_end_writeback()
303 wake_up_all(&nfss->write_congestion_wait); in nfs_folio_end_writeback()
656 struct nfs_server *nfss = NFS_SERVER(inode); in nfs_writepages() local
663 if (wbc->sync_mode == WB_SYNC_NONE && nfss->write_congested) { in nfs_writepages()
664 err = wait_event_killable(nfss->write_congestion_wait, in nfs_writepages()
[all …]
H A Dpnfs.c108 unset_pnfs_layoutdriver(struct nfs_server *nfss) in unset_pnfs_layoutdriver() argument
110 if (nfss->pnfs_curr_ld) { in unset_pnfs_layoutdriver()
111 if (nfss->pnfs_curr_ld->clear_layoutdriver) in unset_pnfs_layoutdriver()
112 nfss->pnfs_curr_ld->clear_layoutdriver(nfss); in unset_pnfs_layoutdriver()
114 if (atomic_dec_and_test(&nfss->nfs_client->cl_mds_count)) in unset_pnfs_layoutdriver()
115 nfs4_deviceid_purge_client(nfss->nfs_client); in unset_pnfs_layoutdriver()
116 module_put(nfss->pnfs_curr_ld->owner); in unset_pnfs_layoutdriver()
118 nfss->pnfs_curr_ld = NULL; in unset_pnfs_layoutdriver()
3029 struct nfs_server *nfss = NFS_SERVER(inode); in pnfs_try_to_write_data() local
3035 trypnfs = nfss->pnfs_curr_ld->write_pagelist(hdr, how); in pnfs_try_to_write_data()
[all …]
/linux/include/linux/
H A Dnfs_fs.h381 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MINATTRTIMEO() local
382 return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; in NFS_MINATTRTIMEO()
387 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MAXATTRTIMEO() local
388 return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; in NFS_MAXATTRTIMEO()