/fs/nfs/ |
D | nfs4getroot.c | 15 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()
|
D | proc.c | 58 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() 518 struct nfs2_fsstat fsinfo; in nfs_proc_statfs() local 522 .rpc_resp = &fsinfo, in nfs_proc_statfs() 532 stat->tbytes = (u64)fsinfo.blocks * fsinfo.bsize; in nfs_proc_statfs() [all …]
|
D | getroot.c | 75 struct nfs_fsinfo fsinfo; in nfs_get_root() local 85 fsinfo.fattr = nfs_alloc_fattr(); in nfs_get_root() 86 if (fsinfo.fattr == NULL) { in nfs_get_root() 91 error = server->nfs_client->rpc_ops->getroot(server, mntfh, &fsinfo); in nfs_get_root() 98 inode = nfs_fhget(sb, mntfh, fsinfo.fattr, NULL); in nfs_get_root() 131 nfs_free_fattr(fsinfo.fattr); in nfs_get_root()
|
D | client.c | 734 struct nfs_fsinfo *fsinfo) in nfs_server_set_fsinfo() argument 740 server->rsize = nfs_block_size(fsinfo->rtpref, NULL); in nfs_server_set_fsinfo() 742 server->wsize = nfs_block_size(fsinfo->wtpref, NULL); in nfs_server_set_fsinfo() 744 if (fsinfo->rtmax >= 512 && server->rsize > fsinfo->rtmax) in nfs_server_set_fsinfo() 745 server->rsize = nfs_block_size(fsinfo->rtmax, NULL); in nfs_server_set_fsinfo() 746 if (fsinfo->wtmax >= 512 && server->wsize > fsinfo->wtmax) in nfs_server_set_fsinfo() 747 server->wsize = nfs_block_size(fsinfo->wtmax, NULL); in nfs_server_set_fsinfo() 762 server->wtmult = nfs_block_bits(fsinfo->wtmult, NULL); in nfs_server_set_fsinfo() 764 server->dtsize = nfs_block_size(fsinfo->dtpref, NULL); in nfs_server_set_fsinfo() 775 server->maxfilesize = fsinfo->maxfilesize; in nfs_server_set_fsinfo() [all …]
|
D | nfs4xdr.c | 4826 struct nfs_fsinfo *fsinfo) in decode_pnfs_layout_types() argument 4834 fsinfo->nlayouttypes = be32_to_cpup(p); in decode_pnfs_layout_types() 4837 if (fsinfo->nlayouttypes == 0) in decode_pnfs_layout_types() 4841 p = xdr_inline_decode(xdr, fsinfo->nlayouttypes * 4); in decode_pnfs_layout_types() 4846 if (fsinfo->nlayouttypes > NFS_MAX_LAYOUT_TYPES) { in decode_pnfs_layout_types() 4848 __func__, fsinfo->nlayouttypes); in decode_pnfs_layout_types() 4849 fsinfo->nlayouttypes = NFS_MAX_LAYOUT_TYPES; in decode_pnfs_layout_types() 4852 for(i = 0; i < fsinfo->nlayouttypes; ++i) in decode_pnfs_layout_types() 4853 fsinfo->layouttype[i] = be32_to_cpup(p++); in decode_pnfs_layout_types() 4865 struct nfs_fsinfo *fsinfo) in decode_attr_pnfstype() argument [all …]
|
D | pnfs.c | 149 struct nfs_fsinfo *fsinfo) in set_pnfs_layoutdriver() argument 155 if (fsinfo->nlayouttypes == 0) in set_pnfs_layoutdriver() 164 sort(fsinfo->layouttype, fsinfo->nlayouttypes, in set_pnfs_layoutdriver() 165 sizeof(*fsinfo->layouttype), ld_cmp, NULL); in set_pnfs_layoutdriver() 167 for (i = 0; i < fsinfo->nlayouttypes; i++) { in set_pnfs_layoutdriver() 168 id = fsinfo->layouttype[i]; in set_pnfs_layoutdriver()
|
D | nfs4proc.c | 4589 struct nfs_fsinfo *fsinfo) in _nfs4_do_fsinfo() argument 4596 .fsinfo = fsinfo, in _nfs4_do_fsinfo() 4607 …ic int nfs4_do_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) in nfs4_do_fsinfo() argument 4614 err = _nfs4_do_fsinfo(server, fhandle, fsinfo); in nfs4_do_fsinfo() 4615 trace_nfs4_fsinfo(server, fhandle, fsinfo->fattr, err); in nfs4_do_fsinfo() 4618 fsinfo->lease_time * HZ, in nfs4_do_fsinfo() 4627 … int nfs4_proc_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) in nfs4_proc_fsinfo() argument 4631 nfs_fattr_init(fsinfo->fattr); in nfs4_proc_fsinfo() 4632 error = nfs4_do_fsinfo(server, fhandle, fsinfo); in nfs4_proc_fsinfo() 4635 server->pnfs_blksize = fsinfo->blksize; in nfs4_proc_fsinfo() [all …]
|
D | nfs4_fs.h | 281 struct nfs_fsinfo *fsinfo);
|
D | nfs4state.c | 283 struct nfs_fsinfo fsinfo; in nfs41_setup_state_renewal() local 292 status = nfs4_proc_get_lease_time(clp, &fsinfo); in nfs41_setup_state_renewal() 294 nfs4_set_lease_period(clp, fsinfo.lease_time * HZ, now); in nfs41_setup_state_renewal()
|
D | pnfs.h | 699 struct nfs_fsinfo *fsinfo) in set_pnfs_layoutdriver() argument
|
D | nfs3proc.c | 993 .fsinfo = nfs3_proc_fsinfo,
|
D | nfs3xdr.c | 2580 PROC(FSINFO, getattr, fsinfo, 0),
|
/fs/fat/ |
D | misc.c | 64 struct fat_boot_fsinfo *fsinfo; in fat_clusters_flush() local 75 fsinfo = (struct fat_boot_fsinfo *)bh->b_data; in fat_clusters_flush() 77 if (!IS_FSINFO(fsinfo)) { in fat_clusters_flush() 80 le32_to_cpu(fsinfo->signature1), in fat_clusters_flush() 81 le32_to_cpu(fsinfo->signature2), in fat_clusters_flush() 85 fsinfo->free_clusters = cpu_to_le32(sbi->free_clusters); in fat_clusters_flush() 87 fsinfo->next_cluster = cpu_to_le32(sbi->prev_free); in fat_clusters_flush()
|
D | inode.c | 1693 struct fat_boot_fsinfo *fsinfo; in fat_fill_super() local 1713 fsinfo = (struct fat_boot_fsinfo *)fsinfo_bh->b_data; in fat_fill_super() 1714 if (!IS_FSINFO(fsinfo)) { in fat_fill_super() 1717 le32_to_cpu(fsinfo->signature1), in fat_fill_super() 1718 le32_to_cpu(fsinfo->signature2), in fat_fill_super() 1723 sbi->free_clusters = le32_to_cpu(fsinfo->free_clusters); in fat_fill_super() 1724 sbi->prev_free = le32_to_cpu(fsinfo->next_cluster); in fat_fill_super()
|