Home
last modified time | relevance | path

Searched refs:nfss (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-6.6/fs/nfs/
H A Dsuper.c339 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid() argument
342 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address; in nfs_show_mountd_netid()
347 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
357 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
371 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument
374 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; in nfs_show_mountd_options()
376 if (nfss->flags & NFS_MOUNT_LEGACY_INTERFACE) in nfs_show_mountd_options()
395 if (nfss->mountd_version || showdefaults) in nfs_show_mountd_options()
396 seq_printf(m, ",mountvers=%u", nfss->mountd_version); in nfs_show_mountd_options()
397 if ((nfss in nfs_show_mountd_options()
406 nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, int showdefaults) nfs_show_nfsv4_options() argument
414 nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, int showdefaults) nfs_show_nfsv4_options() argument
432 nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, int showdefaults) nfs_show_mount_options() argument
552 struct nfs_server *nfss = NFS_SB(root->d_sb); nfs_show_options() local
598 show_implementation_id(struct seq_file *m, struct nfs_server *nfss) show_implementation_id() argument
614 show_implementation_id(struct seq_file *m, struct nfs_server *nfss) show_implementation_id() argument
649 struct nfs_server *nfss = NFS_SB(root->d_sb); nfs_show_stats() local
979 nfs_compare_remount_data(struct nfs_server *nfss, struct nfs_fs_context *ctx) nfs_compare_remount_data() argument
1008 struct nfs_server *nfss = sb->s_fs_info; nfs_reconfigure() local
1222 struct nfs_server *nfss = NFS_SB(sb); nfs_get_cache_cookie() local
[all...]
H A Dfscache.c91 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 in nfs_fscache_get_super_cookie()
153 struct nfs_server *nfss = NFS_SB(sb); nfs_fscache_release_super_cookie() local
166 struct nfs_server *nfss = NFS_SERVER(inode); nfs_fscache_init_inode() local
[all...]
H A Dfs_context.c1595 struct nfs_server *nfss = fc->root->d_sb->s_fs_info; in nfs_init_fs_context() local
1596 struct net *net = nfss->nfs_client->cl_net; in nfs_init_fs_context()
1598 ctx->flags = nfss->flags; in nfs_init_fs_context()
1599 ctx->rsize = nfss->rsize; in nfs_init_fs_context()
1600 ctx->wsize = nfss->wsize; in nfs_init_fs_context()
1601 ctx->retrans = nfss->client->cl_timeout->to_retries; in nfs_init_fs_context()
1602 ctx->selected_flavor = nfss->client->cl_auth->au_flavor; in nfs_init_fs_context()
1603 ctx->acregmin = nfss->acregmin / HZ; in nfs_init_fs_context()
1604 ctx->acregmax = nfss->acregmax / HZ; in nfs_init_fs_context()
1605 ctx->acdirmin = nfss in nfs_init_fs_context()
[all...]
H A Dpnfs.h461 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()
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()
618 pnfs_use_threshold(struct nfs4_threshold **dst, struct nfs4_threshold *src, struct nfs_server *nfss) pnfs_use_threshold() argument
878 pnfs_use_threshold(struct nfs4_threshold **dst, struct nfs4_threshold *src, struct nfs_server *nfss) pnfs_use_threshold() argument
H A Dwrite.c413 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 in nfs_commit_release_pages()
[all...]
H A Dpnfs.c107 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()
2894 struct nfs_server *nfss in pnfs_try_to_write_data() local
3019 struct nfs_server *nfss = NFS_SERVER(inode); pnfs_try_to_read_data() local
3178 struct nfs_server *nfss = NFS_SERVER(data->args.inode); pnfs_cleanup_layoutcommit() local
[all...]
/kernel/linux/linux-5.10/fs/nfs/
H A Dsuper.c327 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid() argument
330 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address; in nfs_show_mountd_netid()
335 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
345 switch (nfss->mountd_protocol) { in nfs_show_mountd_netid()
359 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options() argument
362 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; in nfs_show_mountd_options()
364 if (nfss->flags & NFS_MOUNT_LEGACY_INTERFACE) in nfs_show_mountd_options()
383 if (nfss->mountd_version || showdefaults) in nfs_show_mountd_options()
384 seq_printf(m, ",mountvers=%u", nfss->mountd_version); in nfs_show_mountd_options()
385 if ((nfss in nfs_show_mountd_options()
394 nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, int showdefaults) nfs_show_nfsv4_options() argument
402 nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, int showdefaults) nfs_show_nfsv4_options() argument
420 nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, int showdefaults) nfs_show_mount_options() argument
521 struct nfs_server *nfss = NFS_SB(root->d_sb); nfs_show_options() local
567 show_implementation_id(struct seq_file *m, struct nfs_server *nfss) show_implementation_id() argument
583 show_implementation_id(struct seq_file *m, struct nfs_server *nfss) show_implementation_id() argument
618 struct nfs_server *nfss = NFS_SB(root->d_sb); nfs_show_stats() local
960 nfs_compare_remount_data(struct nfs_server *nfss, struct nfs_fs_context *ctx) nfs_compare_remount_data() argument
989 struct nfs_server *nfss = sb->s_fs_info; nfs_reconfigure() local
1193 struct nfs_server *nfss = NFS_SB(sb); nfs_get_cache_cookie() local
[all...]
H A Dfscache.c115 struct nfs_server *nfss = NFS_SB(sb); in nfs_fscache_get_super_cookie() local
119 nfss->fscache_key = NULL; in nfs_fscache_get_super_cookie()
120 nfss->fscache = NULL; 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()
137 key->key.nfs_server.acdirmin = nfss in nfs_fscache_get_super_cookie()
211 struct nfs_server *nfss = NFS_SB(sb); nfs_fscache_release_super_cookie() local
247 struct nfs_server *nfss = NFS_SERVER(inode); nfs_fscache_init_inode() local
[all...]
H A Dfs_context.c1450 struct nfs_server *nfss = fc->root->d_sb->s_fs_info; in nfs_init_fs_context() local
1451 struct net *net = nfss->nfs_client->cl_net; in nfs_init_fs_context()
1453 ctx->flags = nfss->flags; in nfs_init_fs_context()
1454 ctx->rsize = nfss->rsize; in nfs_init_fs_context()
1455 ctx->wsize = nfss->wsize; in nfs_init_fs_context()
1456 ctx->retrans = nfss->client->cl_timeout->to_retries; in nfs_init_fs_context()
1457 ctx->selected_flavor = nfss->client->cl_auth->au_flavor; in nfs_init_fs_context()
1458 ctx->acregmin = nfss->acregmin / HZ; in nfs_init_fs_context()
1459 ctx->acregmax = nfss->acregmax / HZ; in nfs_init_fs_context()
1460 ctx->acdirmin = nfss in nfs_init_fs_context()
[all...]
H A Dpnfs.h461 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()
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()
872 struct nfs_server *nfss) in pnfs_use_threshold()
618 pnfs_use_threshold(struct nfs4_threshold **dst, struct nfs4_threshold *src, struct nfs_server *nfss) pnfs_use_threshold() argument
871 pnfs_use_threshold(struct nfs4_threshold **dst, struct nfs4_threshold *src, struct nfs_server *nfss) pnfs_use_threshold() argument
H A Dpnfs.c107 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()
2898 struct nfs_server *nfss in pnfs_try_to_write_data() local
3022 struct nfs_server *nfss = NFS_SERVER(inode); pnfs_try_to_read_data() local
3180 struct nfs_server *nfss = NFS_SERVER(data->args.inode); pnfs_cleanup_layoutcommit() local
[all...]
H A Dwrite.c411 struct nfs_server *nfss = NFS_SERVER(inode); in nfs_set_page_writeback() local
416 if (atomic_long_inc_return(&nfss->writeback) > in nfs_set_page_writeback()
424 struct nfs_server *nfss = NFS_SERVER(inode); in nfs_end_page_writeback() local
433 if (atomic_long_dec_return(&nfss->writeback) < NFS_CONGESTION_OFF_THRESH) in nfs_end_page_writeback()
1826 struct nfs_server *nfss; in nfs_commit_release_pages() local
1867 nfss = NFS_SERVER(data->inode); in nfs_commit_release_pages()
1868 if (atomic_long_read(&nfss->writeback) < NFS_CONGESTION_OFF_THRESH) in nfs_commit_release_pages()
/kernel/linux/linux-5.10/include/linux/
H A Dnfs_fs.h298 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MINATTRTIMEO() local
299 return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; in NFS_MINATTRTIMEO()
304 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MAXATTRTIMEO() local
305 return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; in NFS_MAXATTRTIMEO()
/kernel/linux/linux-6.6/include/linux/
H A Dnfs_fs.h354 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()

Completed in 26 milliseconds