Lines Matching refs:ds_versions
36 kfree(mirror_ds->ds_versions); in nfs4_ff_layout_free_deviceid()
51 struct nfs4_ff_ds_version *ds_versions = NULL; in nfs4_ff_alloc_deviceid_node() local
102 ds_versions = kcalloc(version_count, in nfs4_ff_alloc_deviceid_node()
105 if (!ds_versions) in nfs4_ff_alloc_deviceid_node()
114 ds_versions[i].version = be32_to_cpup(p++); in nfs4_ff_alloc_deviceid_node()
115 ds_versions[i].minor_version = be32_to_cpup(p++); in nfs4_ff_alloc_deviceid_node()
116 ds_versions[i].rsize = nfs_io_size(be32_to_cpup(p++), in nfs4_ff_alloc_deviceid_node()
118 ds_versions[i].wsize = nfs_io_size(be32_to_cpup(p++), in nfs4_ff_alloc_deviceid_node()
120 ds_versions[i].tightly_coupled = be32_to_cpup(p); in nfs4_ff_alloc_deviceid_node()
122 if (ds_versions[i].rsize > NFS_MAX_FILE_IO_SIZE) in nfs4_ff_alloc_deviceid_node()
123 ds_versions[i].rsize = NFS_MAX_FILE_IO_SIZE; in nfs4_ff_alloc_deviceid_node()
124 if (ds_versions[i].wsize > NFS_MAX_FILE_IO_SIZE) in nfs4_ff_alloc_deviceid_node()
125 ds_versions[i].wsize = NFS_MAX_FILE_IO_SIZE; in nfs4_ff_alloc_deviceid_node()
132 if (!((ds_versions[i].version == 3 && ds_versions[i].minor_version == 0) || in nfs4_ff_alloc_deviceid_node()
133 (ds_versions[i].version == 4 && ds_versions[i].minor_version < 3))) { in nfs4_ff_alloc_deviceid_node()
135 i, ds_versions[i].version, in nfs4_ff_alloc_deviceid_node()
136 ds_versions[i].minor_version); in nfs4_ff_alloc_deviceid_node()
142 __func__, i, ds_versions[i].version, in nfs4_ff_alloc_deviceid_node()
143 ds_versions[i].minor_version, in nfs4_ff_alloc_deviceid_node()
144 ds_versions[i].rsize, in nfs4_ff_alloc_deviceid_node()
145 ds_versions[i].wsize, in nfs4_ff_alloc_deviceid_node()
146 ds_versions[i].tightly_coupled); in nfs4_ff_alloc_deviceid_node()
149 new_ds->ds_versions = ds_versions; in nfs4_ff_alloc_deviceid_node()
178 kfree(ds_versions); in nfs4_ff_alloc_deviceid_node()
393 mirror->mirror_ds->ds_versions[0].version, in nfs4_ff_layout_prepare_ds()
394 mirror->mirror_ds->ds_versions[0].minor_version); in nfs4_ff_layout_prepare_ds()
407 if (mirror->mirror_ds->ds_versions[0].rsize > max_payload) in nfs4_ff_layout_prepare_ds()
408 mirror->mirror_ds->ds_versions[0].rsize = max_payload; in nfs4_ff_layout_prepare_ds()
409 if (mirror->mirror_ds->ds_versions[0].wsize > max_payload) in nfs4_ff_layout_prepare_ds()
410 mirror->mirror_ds->ds_versions[0].wsize = max_payload; in nfs4_ff_layout_prepare_ds()
433 if (mirror && !mirror->mirror_ds->ds_versions[0].tightly_coupled) { in ff_layout_get_ds_cred()
456 switch (mirror->mirror_ds->ds_versions[0].version) { in nfs4_ff_find_or_create_ds_client()