Lines Matching refs:ds_versions
33 kfree(mirror_ds->ds_versions); in nfs4_ff_layout_free_deviceid()
48 struct nfs4_ff_ds_version *ds_versions = NULL; in nfs4_ff_alloc_deviceid_node() local
99 ds_versions = kzalloc(version_count * sizeof(struct nfs4_ff_ds_version), in nfs4_ff_alloc_deviceid_node()
101 if (!ds_versions) in nfs4_ff_alloc_deviceid_node()
110 ds_versions[i].version = be32_to_cpup(p++); in nfs4_ff_alloc_deviceid_node()
111 ds_versions[i].minor_version = be32_to_cpup(p++); in nfs4_ff_alloc_deviceid_node()
112 ds_versions[i].rsize = nfs_block_size(be32_to_cpup(p++), NULL); in nfs4_ff_alloc_deviceid_node()
113 ds_versions[i].wsize = nfs_block_size(be32_to_cpup(p++), NULL); in nfs4_ff_alloc_deviceid_node()
114 ds_versions[i].tightly_coupled = be32_to_cpup(p); in nfs4_ff_alloc_deviceid_node()
116 if (ds_versions[i].rsize > NFS_MAX_FILE_IO_SIZE) in nfs4_ff_alloc_deviceid_node()
117 ds_versions[i].rsize = NFS_MAX_FILE_IO_SIZE; in nfs4_ff_alloc_deviceid_node()
118 if (ds_versions[i].wsize > NFS_MAX_FILE_IO_SIZE) in nfs4_ff_alloc_deviceid_node()
119 ds_versions[i].wsize = NFS_MAX_FILE_IO_SIZE; in nfs4_ff_alloc_deviceid_node()
121 if (ds_versions[i].version != 3 || ds_versions[i].minor_version != 0) { in nfs4_ff_alloc_deviceid_node()
123 i, ds_versions[i].version, in nfs4_ff_alloc_deviceid_node()
124 ds_versions[i].minor_version); in nfs4_ff_alloc_deviceid_node()
130 __func__, i, ds_versions[i].version, in nfs4_ff_alloc_deviceid_node()
131 ds_versions[i].minor_version, in nfs4_ff_alloc_deviceid_node()
132 ds_versions[i].rsize, in nfs4_ff_alloc_deviceid_node()
133 ds_versions[i].wsize, in nfs4_ff_alloc_deviceid_node()
134 ds_versions[i].tightly_coupled); in nfs4_ff_alloc_deviceid_node()
137 new_ds->ds_versions = ds_versions; in nfs4_ff_alloc_deviceid_node()
166 kfree(ds_versions); in nfs4_ff_alloc_deviceid_node()
396 mirror->mirror_ds->ds_versions[0].version, in nfs4_ff_layout_prepare_ds()
397 mirror->mirror_ds->ds_versions[0].minor_version, in nfs4_ff_layout_prepare_ds()
405 if (mirror->mirror_ds->ds_versions[0].rsize > max_payload) in nfs4_ff_layout_prepare_ds()
406 mirror->mirror_ds->ds_versions[0].rsize = max_payload; in nfs4_ff_layout_prepare_ds()
407 if (mirror->mirror_ds->ds_versions[0].wsize > max_payload) in nfs4_ff_layout_prepare_ds()
408 mirror->mirror_ds->ds_versions[0].wsize = max_payload; in nfs4_ff_layout_prepare_ds()
450 switch (mirror->mirror_ds->ds_versions[0].version) { in nfs4_ff_find_or_create_ds_client()