Home
last modified time | relevance | path

Searched refs:fsinfo (Results 1 - 25 of 32) sorted by relevance

12

/kernel/linux/linux-5.10/fs/nfs/
H A Dnfs4getroot.c15 struct nfs_fsinfo fsinfo; in nfs4_get_rootfh() local
18 fsinfo.fattr = nfs_alloc_fattr(); in nfs4_get_rootfh()
19 if (fsinfo.fattr == NULL) in nfs4_get_rootfh()
23 ret = nfs4_proc_get_rootfh(server, mntfh, &fsinfo, auth_probe); in nfs4_get_rootfh()
29 if (!(fsinfo.fattr->valid & NFS_ATTR_FATTR_TYPE) in nfs4_get_rootfh()
30 || !S_ISDIR(fsinfo.fattr->mode)) { in nfs4_get_rootfh()
37 memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); in nfs4_get_rootfh()
39 nfs_free_fattr(fsinfo.fattr); in nfs4_get_rootfh()
H A Dgetroot.c71 struct nfs_fsinfo fsinfo; in nfs_get_root() local
83 fsinfo.fattr = nfs_alloc_fattr(); in nfs_get_root()
84 if (fsinfo.fattr == NULL) in nfs_get_root()
87 fsinfo.fattr->label = nfs4_label_alloc(server, GFP_KERNEL); in nfs_get_root()
88 if (IS_ERR(fsinfo.fattr->label)) in nfs_get_root()
90 error = server->nfs_client->rpc_ops->getroot(server, ctx->mntfh, &fsinfo); in nfs_get_root()
97 inode = nfs_fhget(s, ctx->mntfh, fsinfo.fattr, NULL); in nfs_get_root()
150 nfs_setsecurity(inode, fsinfo.fattr, fsinfo.fattr->label); in nfs_get_root()
154 nfs4_label_free(fsinfo in nfs_get_root()
[all...]
H A Dproc.c58 struct nfs2_fsstat fsinfo; in nfs_proc_get_root() local
77 msg.rpc_resp = &fsinfo; in nfs_proc_get_root()
86 info->rtpref = fsinfo.tsize; in nfs_proc_get_root()
87 info->rtmult = fsinfo.bsize; in nfs_proc_get_root()
89 info->wtpref = fsinfo.tsize; in nfs_proc_get_root()
90 info->wtmult = fsinfo.bsize; in nfs_proc_get_root()
91 info->dtpref = fsinfo.tsize; in nfs_proc_get_root()
533 struct nfs2_fsstat fsinfo; in nfs_proc_statfs() local
537 .rpc_resp = &fsinfo, in nfs_proc_statfs()
547 stat->tbytes = (u64)fsinfo in nfs_proc_statfs()
561 struct nfs2_fsstat fsinfo; nfs_proc_fsinfo() local
[all...]
H A Dclient.c749 * Load up the server record from information gained in an fsinfo record
752 struct nfs_fsinfo *fsinfo) in nfs_server_set_fsinfo()
758 server->rsize = nfs_block_size(fsinfo->rtpref, NULL); in nfs_server_set_fsinfo()
760 server->wsize = nfs_block_size(fsinfo->wtpref, NULL); in nfs_server_set_fsinfo()
762 if (fsinfo->rtmax >= 512 && server->rsize > fsinfo->rtmax) in nfs_server_set_fsinfo()
763 server->rsize = nfs_block_size(fsinfo->rtmax, NULL); in nfs_server_set_fsinfo()
764 if (fsinfo->wtmax >= 512 && server->wsize > fsinfo->wtmax) in nfs_server_set_fsinfo()
765 server->wsize = nfs_block_size(fsinfo in nfs_server_set_fsinfo()
751 nfs_server_set_fsinfo(struct nfs_server *server, struct nfs_fsinfo *fsinfo) nfs_server_set_fsinfo() argument
824 struct nfs_fsinfo fsinfo; nfs_probe_fsinfo() local
[all...]
H A Dnfs4xdr.c4745 struct nfs_fsinfo *fsinfo) in decode_pnfs_layout_types()
4753 fsinfo->nlayouttypes = be32_to_cpup(p); in decode_pnfs_layout_types()
4756 if (fsinfo->nlayouttypes == 0) in decode_pnfs_layout_types()
4760 p = xdr_inline_decode(xdr, fsinfo->nlayouttypes * 4); in decode_pnfs_layout_types()
4765 if (fsinfo->nlayouttypes > NFS_MAX_LAYOUT_TYPES) { in decode_pnfs_layout_types()
4767 __func__, fsinfo->nlayouttypes); in decode_pnfs_layout_types()
4768 fsinfo->nlayouttypes = NFS_MAX_LAYOUT_TYPES; in decode_pnfs_layout_types()
4771 for(i = 0; i < fsinfo->nlayouttypes; ++i) in decode_pnfs_layout_types()
4772 fsinfo->layouttype[i] = be32_to_cpup(p++); in decode_pnfs_layout_types()
4781 struct nfs_fsinfo *fsinfo) in decode_attr_pnfstype()
4744 decode_pnfs_layout_types(struct xdr_stream *xdr, struct nfs_fsinfo *fsinfo) decode_pnfs_layout_types() argument
4780 decode_attr_pnfstype(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fsinfo *fsinfo) decode_attr_pnfstype() argument
4835 decode_fsinfo(struct xdr_stream *xdr, struct nfs_fsinfo *fsinfo) decode_fsinfo() argument
[all...]
H A Dpnfs.c161 struct nfs_fsinfo *fsinfo) in set_pnfs_layoutdriver()
167 if (fsinfo->nlayouttypes == 0) in set_pnfs_layoutdriver()
176 sort(fsinfo->layouttype, fsinfo->nlayouttypes, in set_pnfs_layoutdriver()
177 sizeof(*fsinfo->layouttype), ld_cmp, NULL); in set_pnfs_layoutdriver()
179 for (i = 0; i < fsinfo->nlayouttypes; i++) { in set_pnfs_layoutdriver()
180 id = fsinfo->layouttype[i]; in set_pnfs_layoutdriver()
160 set_pnfs_layoutdriver(struct nfs_server *server, const struct nfs_fh *mntfh, struct nfs_fsinfo *fsinfo) set_pnfs_layoutdriver() argument
H A Dnfs4proc.c5147 struct nfs_fsinfo *fsinfo) in _nfs4_do_fsinfo()
5154 .fsinfo = fsinfo, in _nfs4_do_fsinfo()
5165 static int nfs4_do_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) in nfs4_do_fsinfo() argument
5173 err = _nfs4_do_fsinfo(server, fhandle, fsinfo); in nfs4_do_fsinfo()
5174 trace_nfs4_fsinfo(server, fhandle, fsinfo->fattr, err); in nfs4_do_fsinfo()
5176 nfs4_set_lease_period(server->nfs_client, fsinfo->lease_time * HZ); in nfs4_do_fsinfo()
5184 static int nfs4_proc_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) in nfs4_proc_fsinfo() argument
5188 nfs_fattr_init(fsinfo->fattr); in nfs4_proc_fsinfo()
5189 error = nfs4_do_fsinfo(server, fhandle, fsinfo); in nfs4_proc_fsinfo()
5146 _nfs4_do_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) _nfs4_do_fsinfo() argument
8855 nfs4_proc_get_lease_time(struct nfs_client *clp, struct nfs_fsinfo *fsinfo) nfs4_proc_get_lease_time() argument
[all...]
H A Dnfs4_fs.h330 struct nfs_fsinfo *fsinfo);
H A Dnfs4state.c97 struct nfs_fsinfo fsinfo; in nfs4_setup_state_renewal() local
104 status = nfs4_proc_get_lease_time(clp, &fsinfo); in nfs4_setup_state_renewal()
106 nfs4_set_lease_period(clp, fsinfo.lease_time * HZ); in nfs4_setup_state_renewal()
/kernel/linux/linux-6.6/fs/nfs/
H A Dnfs4getroot.c15 struct nfs_fsinfo fsinfo; in nfs4_get_rootfh() local
18 fsinfo.fattr = nfs_alloc_fattr(); in nfs4_get_rootfh()
19 if (fsinfo.fattr == NULL) in nfs4_get_rootfh()
23 ret = nfs4_proc_get_rootfh(server, mntfh, &fsinfo, auth_probe); in nfs4_get_rootfh()
29 if (!(fsinfo.fattr->valid & NFS_ATTR_FATTR_TYPE) in nfs4_get_rootfh()
30 || !S_ISDIR(fsinfo.fattr->mode)) { in nfs4_get_rootfh()
37 memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); in nfs4_get_rootfh()
39 nfs_free_fattr(fsinfo.fattr); in nfs4_get_rootfh()
H A Dgetroot.c71 struct nfs_fsinfo fsinfo; in nfs_get_root() local
83 fsinfo.fattr = nfs_alloc_fattr_with_label(server); in nfs_get_root()
84 if (fsinfo.fattr == NULL) in nfs_get_root()
87 error = server->nfs_client->rpc_ops->getroot(server, ctx->mntfh, &fsinfo); in nfs_get_root()
94 inode = nfs_fhget(s, ctx->mntfh, fsinfo.fattr); in nfs_get_root()
151 nfs_setsecurity(inode, fsinfo.fattr); in nfs_get_root()
155 nfs_free_fattr(fsinfo.fattr); in nfs_get_root()
H A Dproc.c58 struct nfs2_fsstat fsinfo; in nfs_proc_get_root() local
77 msg.rpc_resp = &fsinfo; in nfs_proc_get_root()
86 info->rtpref = fsinfo.tsize; in nfs_proc_get_root()
87 info->rtmult = fsinfo.bsize; in nfs_proc_get_root()
89 info->wtpref = fsinfo.tsize; in nfs_proc_get_root()
90 info->wtmult = fsinfo.bsize; in nfs_proc_get_root()
91 info->dtpref = fsinfo.tsize; in nfs_proc_get_root()
533 struct nfs2_fsstat fsinfo; in nfs_proc_statfs() local
537 .rpc_resp = &fsinfo, in nfs_proc_statfs()
547 stat->tbytes = (u64)fsinfo in nfs_proc_statfs()
561 struct nfs2_fsstat fsinfo; nfs_proc_fsinfo() local
[all...]
H A Dclient.c767 * Load up the server record from information gained in an fsinfo record
770 struct nfs_fsinfo *fsinfo) in nfs_server_set_fsinfo()
777 server->rsize = nfs_io_size(fsinfo->rtpref, clp->cl_proto); in nfs_server_set_fsinfo()
779 server->wsize = nfs_io_size(fsinfo->wtpref, clp->cl_proto); in nfs_server_set_fsinfo()
781 if (fsinfo->rtmax >= 512 && server->rsize > fsinfo->rtmax) in nfs_server_set_fsinfo()
782 server->rsize = nfs_io_size(fsinfo->rtmax, clp->cl_proto); in nfs_server_set_fsinfo()
783 if (fsinfo->wtmax >= 512 && server->wsize > fsinfo->wtmax) in nfs_server_set_fsinfo()
784 server->wsize = nfs_io_size(fsinfo in nfs_server_set_fsinfo()
769 nfs_server_set_fsinfo(struct nfs_server *server, struct nfs_fsinfo *fsinfo) nfs_server_set_fsinfo() argument
844 struct nfs_fsinfo fsinfo; nfs_probe_fsinfo() local
[all...]
H A Dnfs4xdr.c4807 struct nfs_fsinfo *fsinfo) in decode_pnfs_layout_types()
4815 fsinfo->nlayouttypes = be32_to_cpup(p); in decode_pnfs_layout_types()
4818 if (fsinfo->nlayouttypes == 0) in decode_pnfs_layout_types()
4822 p = xdr_inline_decode(xdr, fsinfo->nlayouttypes * 4); in decode_pnfs_layout_types()
4827 if (fsinfo->nlayouttypes > NFS_MAX_LAYOUT_TYPES) { in decode_pnfs_layout_types()
4829 __func__, fsinfo->nlayouttypes); in decode_pnfs_layout_types()
4830 fsinfo->nlayouttypes = NFS_MAX_LAYOUT_TYPES; in decode_pnfs_layout_types()
4833 for(i = 0; i < fsinfo->nlayouttypes; ++i) in decode_pnfs_layout_types()
4834 fsinfo->layouttype[i] = be32_to_cpup(p++); in decode_pnfs_layout_types()
4843 struct nfs_fsinfo *fsinfo) in decode_attr_pnfstype()
4806 decode_pnfs_layout_types(struct xdr_stream *xdr, struct nfs_fsinfo *fsinfo) decode_pnfs_layout_types() argument
4842 decode_attr_pnfstype(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fsinfo *fsinfo) decode_attr_pnfstype() argument
4923 decode_fsinfo(struct xdr_stream *xdr, struct nfs_fsinfo *fsinfo) decode_fsinfo() argument
[all...]
H A Dpnfs.c161 struct nfs_fsinfo *fsinfo) in set_pnfs_layoutdriver()
167 if (fsinfo->nlayouttypes == 0) in set_pnfs_layoutdriver()
176 sort(fsinfo->layouttype, fsinfo->nlayouttypes, in set_pnfs_layoutdriver()
177 sizeof(*fsinfo->layouttype), ld_cmp, NULL); in set_pnfs_layoutdriver()
179 for (i = 0; i < fsinfo->nlayouttypes; i++) { in set_pnfs_layoutdriver()
180 id = fsinfo->layouttype[i]; in set_pnfs_layoutdriver()
160 set_pnfs_layoutdriver(struct nfs_server *server, const struct nfs_fh *mntfh, struct nfs_fsinfo *fsinfo) set_pnfs_layoutdriver() argument
H A Dnfs4proc.c5262 struct nfs_fsinfo *fsinfo) in _nfs4_do_fsinfo()
5269 .fsinfo = fsinfo, in _nfs4_do_fsinfo()
5280 static int nfs4_do_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) in nfs4_do_fsinfo() argument
5288 err = _nfs4_do_fsinfo(server, fhandle, fsinfo); in nfs4_do_fsinfo()
5289 trace_nfs4_fsinfo(server, fhandle, fsinfo->fattr, err); in nfs4_do_fsinfo()
5291 nfs4_set_lease_period(server->nfs_client, fsinfo->lease_time * HZ); in nfs4_do_fsinfo()
5299 static int nfs4_proc_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) in nfs4_proc_fsinfo() argument
5303 nfs_fattr_init(fsinfo->fattr); in nfs4_proc_fsinfo()
5304 error = nfs4_do_fsinfo(server, fhandle, fsinfo); in nfs4_proc_fsinfo()
5261 _nfs4_do_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) _nfs4_do_fsinfo() argument
9077 nfs4_proc_get_lease_time(struct nfs_client *clp, struct nfs_fsinfo *fsinfo) nfs4_proc_get_lease_time() argument
[all...]
H A Dnfs4_fs.h334 struct nfs_fsinfo *fsinfo);
/kernel/linux/linux-5.10/fs/fat/
H A Dmisc.c66 struct fat_boot_fsinfo *fsinfo; in fat_clusters_flush() local
77 fsinfo = (struct fat_boot_fsinfo *)bh->b_data; in fat_clusters_flush()
79 if (!IS_FSINFO(fsinfo)) { in fat_clusters_flush()
82 le32_to_cpu(fsinfo->signature1), in fat_clusters_flush()
83 le32_to_cpu(fsinfo->signature2), in fat_clusters_flush()
87 fsinfo->free_clusters = cpu_to_le32(sbi->free_clusters); in fat_clusters_flush()
89 fsinfo->next_cluster = cpu_to_le32(sbi->prev_free); in fat_clusters_flush()
H A Dinode.c1717 struct fat_boot_fsinfo *fsinfo; in fat_fill_super() local
1737 fsinfo = (struct fat_boot_fsinfo *)fsinfo_bh->b_data; in fat_fill_super()
1738 if (!IS_FSINFO(fsinfo)) { in fat_fill_super()
1741 le32_to_cpu(fsinfo->signature1), in fat_fill_super()
1742 le32_to_cpu(fsinfo->signature2), in fat_fill_super()
1747 sbi->free_clusters = le32_to_cpu(fsinfo->free_clusters); in fat_fill_super()
1748 sbi->prev_free = le32_to_cpu(fsinfo->next_cluster); in fat_fill_super()
/kernel/linux/linux-6.6/fs/fat/
H A Dmisc.c72 struct fat_boot_fsinfo *fsinfo; in fat_clusters_flush() local
83 fsinfo = (struct fat_boot_fsinfo *)bh->b_data; in fat_clusters_flush()
85 if (!IS_FSINFO(fsinfo)) { in fat_clusters_flush()
88 le32_to_cpu(fsinfo->signature1), in fat_clusters_flush()
89 le32_to_cpu(fsinfo->signature2), in fat_clusters_flush()
93 fsinfo->free_clusters = cpu_to_le32(sbi->free_clusters); in fat_clusters_flush()
95 fsinfo->next_cluster = cpu_to_le32(sbi->prev_free); in fat_clusters_flush()
H A Dinode.c1713 struct fat_boot_fsinfo *fsinfo; in fat_fill_super() local
1733 fsinfo = (struct fat_boot_fsinfo *)fsinfo_bh->b_data; in fat_fill_super()
1734 if (!IS_FSINFO(fsinfo)) { in fat_fill_super()
1737 le32_to_cpu(fsinfo->signature1), in fat_fill_super()
1738 le32_to_cpu(fsinfo->signature2), in fat_fill_super()
1743 sbi->free_clusters = le32_to_cpu(fsinfo->free_clusters); in fat_fill_super()
1744 sbi->prev_free = le32_to_cpu(fsinfo->next_cluster); in fat_fill_super()
/kernel/linux/linux-5.10/fs/vboxsf/
H A Ddir.c216 struct shfl_fsobjinfo fsinfo; in vboxsf_dir_lookup() local
222 err = vboxsf_stat_dentry(dentry, &fsinfo); in vboxsf_dir_lookup()
228 vboxsf_init_inode(sbi, inode, &fsinfo); in vboxsf_dir_lookup()
/kernel/linux/linux-6.6/fs/vboxsf/
H A Ddir.c217 struct shfl_fsobjinfo fsinfo; in vboxsf_dir_lookup() local
223 err = vboxsf_stat_dentry(dentry, &fsinfo); in vboxsf_dir_lookup()
229 vboxsf_init_inode(sbi, inode, &fsinfo, false); in vboxsf_dir_lookup()
/kernel/linux/linux-5.10/include/linux/
H A Dnfs_xdr.h1039 struct nfs_fsinfo *fsinfo; member
1758 int (*fsinfo) (struct nfs_server *, struct nfs_fh *, member
/kernel/linux/linux-6.6/include/linux/
H A Dnfs_xdr.h1062 struct nfs_fsinfo *fsinfo; member
1784 int (*fsinfo) (struct nfs_server *, struct nfs_fh *, member

Completed in 77 milliseconds

12