Searched refs:nfss (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/fs/nfs/ |
H A D | super.c | 341 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid() argument 344 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address; in nfs_show_mountd_netid() 349 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid() 359 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid() 373 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument 376 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; in nfs_show_mountd_options() 378 if (nfss->flags & NFS_MOUNT_LEGACY_INTERFACE) in nfs_show_mountd_options() 397 if (nfss->mountd_version || showdefaults) in nfs_show_mountd_options() 398 seq_printf(m, ",mountvers=%u", nfss->mountd_version); in nfs_show_mountd_options() 399 if ((nfss->mountd_port && in nfs_show_mountd_options() [all …]
|
H A D | fscache.c | 91 struct nfs_server *nfss = NFS_SB(sb); in nfs_fscache_get_super_cookie() local 96 nfss->fscache_uniq = kmemdup_nul(uniq, ulen, GFP_KERNEL); in nfs_fscache_get_super_cookie() 97 if (!nfss->fscache_uniq) in nfs_fscache_get_super_cookie() 106 if (!nfs_fscache_get_client_key(nfss->nfs_client, key, &len) || in nfs_fscache_get_super_cookie() 107 !nfs_append_int(key, &len, nfss->fsid.major) || in nfs_fscache_get_super_cookie() 108 !nfs_append_int(key, &len, nfss->fsid.minor) || in nfs_fscache_get_super_cookie() 110 !nfs_append_int(key, &len, nfss->flags) || in nfs_fscache_get_super_cookie() 111 !nfs_append_int(key, &len, nfss->rsize) || in nfs_fscache_get_super_cookie() 112 !nfs_append_int(key, &len, nfss->wsize) || in nfs_fscache_get_super_cookie() 113 !nfs_append_int(key, &len, nfss->acregmin) || in nfs_fscache_get_super_cookie() [all …]
|
H A D | fs_context.c | 1598 struct nfs_server *nfss = fc->root->d_sb->s_fs_info; in nfs_init_fs_context() local 1599 struct net *net = nfss->nfs_client->cl_net; in nfs_init_fs_context() 1601 ctx->flags = nfss->flags; in nfs_init_fs_context() 1602 ctx->rsize = nfss->rsize; in nfs_init_fs_context() 1603 ctx->wsize = nfss->wsize; in nfs_init_fs_context() 1604 ctx->retrans = nfss->client->cl_timeout->to_retries; in nfs_init_fs_context() 1605 ctx->selected_flavor = nfss->client->cl_auth->au_flavor; in nfs_init_fs_context() 1606 ctx->acregmin = nfss->acregmin / HZ; in nfs_init_fs_context() 1607 ctx->acregmax = nfss->acregmax / HZ; in nfs_init_fs_context() 1608 ctx->acdirmin = nfss->acdirmin / HZ; in nfs_init_fs_context() [all …]
|
H A D | pnfs.h | 461 static inline int pnfs_enabled_sb(struct nfs_server *nfss) in pnfs_enabled_sb() argument 463 return nfss->pnfs_curr_ld != NULL; in pnfs_enabled_sb() 607 struct nfs_server *nfss = NFS_SERVER(ino); in pnfs_return_layout() local 609 if (pnfs_enabled_sb(nfss) && nfsi->layout) { in pnfs_return_layout() 619 struct nfs_server *nfss) in pnfs_use_threshold() argument 621 return (dst && src && src->bm != 0 && nfss->pnfs_curr_ld && in pnfs_use_threshold() 622 nfss->pnfs_curr_ld->id == src->l_type); in pnfs_use_threshold() 879 struct nfs_server *nfss) in pnfs_use_threshold() argument
|
H A D | write.c | 413 struct nfs_server *nfss = NFS_SERVER(folio_file_mapping(folio)->host); in nfs_folio_set_writeback() local 416 if (atomic_long_inc_return(&nfss->writeback) > NFS_CONGESTION_ON_THRESH) in nfs_folio_set_writeback() 417 nfss->write_congested = 1; in nfs_folio_set_writeback() 422 struct nfs_server *nfss = NFS_SERVER(folio_file_mapping(folio)->host); in nfs_folio_end_writeback() local 425 if (atomic_long_dec_return(&nfss->writeback) < in nfs_folio_end_writeback() 427 nfss->write_congested = 0; in nfs_folio_end_writeback() 1855 struct nfs_server *nfss; in nfs_commit_release_pages() local 1898 nfss = NFS_SERVER(data->inode); in nfs_commit_release_pages() 1899 if (atomic_long_read(&nfss->writeback) < NFS_CONGESTION_OFF_THRESH) in nfs_commit_release_pages() 1900 nfss->write_congested = 0; in nfs_commit_release_pages()
|
H A D | pnfs.c | 107 unset_pnfs_layoutdriver(struct nfs_server *nfss) in unset_pnfs_layoutdriver() argument 109 if (nfss->pnfs_curr_ld) { in unset_pnfs_layoutdriver() 110 if (nfss->pnfs_curr_ld->clear_layoutdriver) in unset_pnfs_layoutdriver() 111 nfss->pnfs_curr_ld->clear_layoutdriver(nfss); in unset_pnfs_layoutdriver() 113 if (atomic_dec_and_test(&nfss->nfs_client->cl_mds_count)) in unset_pnfs_layoutdriver() 114 nfs4_deviceid_purge_client(nfss->nfs_client); in unset_pnfs_layoutdriver() 115 module_put(nfss->pnfs_curr_ld->owner); in unset_pnfs_layoutdriver() 117 nfss->pnfs_curr_ld = NULL; in unset_pnfs_layoutdriver() 2901 struct nfs_server *nfss = NFS_SERVER(inode); in pnfs_try_to_write_data() local 2907 trypnfs = nfss->pnfs_curr_ld->write_pagelist(hdr, how); in pnfs_try_to_write_data() [all …]
|
/openbmc/linux/include/linux/ |
H A D | nfs_fs.h | 354 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MINATTRTIMEO() local 355 return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; in NFS_MINATTRTIMEO() 360 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MAXATTRTIMEO() local 361 return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; in NFS_MAXATTRTIMEO()
|