/linux-4.1.27/fs/nfs/ |
D | nfs4getroot.c | 14 struct nfs_fsinfo fsinfo; in nfs4_get_rootfh() local 19 fsinfo.fattr = nfs_alloc_fattr(); in nfs4_get_rootfh() 20 if (fsinfo.fattr == NULL) in nfs4_get_rootfh() 24 ret = nfs4_proc_get_rootfh(server, mntfh, &fsinfo, auth_probe); in nfs4_get_rootfh() 30 if (!(fsinfo.fattr->valid & NFS_ATTR_FATTR_TYPE) in nfs4_get_rootfh() 31 || !S_ISDIR(fsinfo.fattr->mode)) { in nfs4_get_rootfh() 38 if (fsinfo.fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) { in nfs4_get_rootfh() 45 memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); in nfs4_get_rootfh() 47 nfs_free_fattr(fsinfo.fattr); in nfs4_get_rootfh()
|
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 | proc.c | 57 struct nfs2_fsstat fsinfo; in nfs_proc_get_root() local 76 msg.rpc_resp = &fsinfo; in nfs_proc_get_root() 85 info->rtpref = fsinfo.tsize; in nfs_proc_get_root() 86 info->rtmult = fsinfo.bsize; in nfs_proc_get_root() 88 info->wtpref = fsinfo.tsize; in nfs_proc_get_root() 89 info->wtmult = fsinfo.bsize; in nfs_proc_get_root() 90 info->dtpref = fsinfo.tsize; in nfs_proc_get_root() 517 struct nfs2_fsstat fsinfo; in nfs_proc_statfs() local 521 .rpc_resp = &fsinfo, in nfs_proc_statfs() 531 stat->tbytes = (u64)fsinfo.blocks * fsinfo.bsize; in nfs_proc_statfs() [all …]
|
D | client.c | 829 struct nfs_fsinfo *fsinfo) in nfs_server_set_fsinfo() argument 835 server->rsize = nfs_block_size(fsinfo->rtpref, NULL); in nfs_server_set_fsinfo() 837 server->wsize = nfs_block_size(fsinfo->wtpref, NULL); in nfs_server_set_fsinfo() 839 if (fsinfo->rtmax >= 512 && server->rsize > fsinfo->rtmax) in nfs_server_set_fsinfo() 840 server->rsize = nfs_block_size(fsinfo->rtmax, NULL); in nfs_server_set_fsinfo() 841 if (fsinfo->wtmax >= 512 && server->wsize > fsinfo->wtmax) in nfs_server_set_fsinfo() 842 server->wsize = nfs_block_size(fsinfo->wtmax, NULL); in nfs_server_set_fsinfo() 860 server->wtmult = nfs_block_bits(fsinfo->wtmult, NULL); in nfs_server_set_fsinfo() 862 server->dtsize = nfs_block_size(fsinfo->dtpref, NULL); in nfs_server_set_fsinfo() 873 server->maxfilesize = fsinfo->maxfilesize; in nfs_server_set_fsinfo() [all …]
|
D | nfs4xdr.c | 4734 static int decode_fsinfo(struct xdr_stream *xdr, struct nfs_fsinfo *fsinfo) in decode_fsinfo() argument 4747 fsinfo->rtmult = fsinfo->wtmult = 512; /* ??? */ in decode_fsinfo() 4749 if ((status = decode_attr_lease_time(xdr, bitmap, &fsinfo->lease_time)) != 0) in decode_fsinfo() 4751 if ((status = decode_attr_maxfilesize(xdr, bitmap, &fsinfo->maxfilesize)) != 0) in decode_fsinfo() 4753 if ((status = decode_attr_maxread(xdr, bitmap, &fsinfo->rtmax)) != 0) in decode_fsinfo() 4755 fsinfo->rtpref = fsinfo->dtpref = fsinfo->rtmax; in decode_fsinfo() 4756 if ((status = decode_attr_maxwrite(xdr, bitmap, &fsinfo->wtmax)) != 0) in decode_fsinfo() 4758 fsinfo->wtpref = fsinfo->wtmax; in decode_fsinfo() 4759 status = decode_attr_time_delta(xdr, bitmap, &fsinfo->time_delta); in decode_fsinfo() 4762 status = decode_attr_pnfstype(xdr, bitmap, &fsinfo->layouttype); in decode_fsinfo() [all …]
|
D | nfs4_fs.h | 273 struct nfs_fsinfo *fsinfo);
|
D | nfs4proc.c | 4023 struct nfs_fsinfo *fsinfo) in _nfs4_do_fsinfo() argument 4030 .fsinfo = fsinfo, in _nfs4_do_fsinfo() 4041 …ic int nfs4_do_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) in nfs4_do_fsinfo() argument 4048 err = _nfs4_do_fsinfo(server, fhandle, fsinfo); in nfs4_do_fsinfo() 4049 trace_nfs4_fsinfo(server, fhandle, fsinfo->fattr, err); in nfs4_do_fsinfo() 4054 clp->cl_lease_time = fsinfo->lease_time * HZ; in nfs4_do_fsinfo() 4064 … int nfs4_proc_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) in nfs4_proc_fsinfo() argument 4068 nfs_fattr_init(fsinfo->fattr); in nfs4_proc_fsinfo() 4069 error = nfs4_do_fsinfo(server, fhandle, fsinfo); in nfs4_proc_fsinfo() 4072 server->pnfs_blksize = fsinfo->blksize; in nfs4_proc_fsinfo() [all …]
|
D | nfs4state.c | 276 struct nfs_fsinfo fsinfo; in nfs41_setup_state_renewal() local 283 status = nfs4_proc_get_lease_time(clp, &fsinfo); in nfs41_setup_state_renewal() 287 clp->cl_lease_time = fsinfo.lease_time * HZ; in nfs41_setup_state_renewal()
|
D | nfs3proc.c | 953 .fsinfo = nfs3_proc_fsinfo,
|
D | nfs3xdr.c | 2525 PROC(FSINFO, getattr, fsinfo, 0),
|
/linux-4.1.27/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 | 1588 struct fat_boot_fsinfo *fsinfo; in fat_fill_super() local 1608 fsinfo = (struct fat_boot_fsinfo *)fsinfo_bh->b_data; in fat_fill_super() 1609 if (!IS_FSINFO(fsinfo)) { in fat_fill_super() 1612 le32_to_cpu(fsinfo->signature1), in fat_fill_super() 1613 le32_to_cpu(fsinfo->signature2), in fat_fill_super() 1618 sbi->free_clusters = le32_to_cpu(fsinfo->free_clusters); in fat_fill_super() 1619 sbi->prev_free = le32_to_cpu(fsinfo->next_cluster); in fat_fill_super()
|
/linux-4.1.27/include/linux/ |
D | nfs_xdr.h | 892 struct nfs_fsinfo *fsinfo; member 1485 int (*fsinfo) (struct nfs_server *, struct nfs_fh *, member
|