Lines Matching refs:devinfo
46 struct nfs42_layoutstat_devinfo *devinfo,
49 const struct nfs42_layoutstat_devinfo *devinfo,
2134 const struct nfs42_layoutstat_devinfo *devinfo) in ff_layout_encode_ff_iostat_head() argument
2139 p = xdr_encode_hyper(p, devinfo->offset); in ff_layout_encode_ff_iostat_head()
2140 p = xdr_encode_hyper(p, devinfo->length); in ff_layout_encode_ff_iostat_head()
2143 p = xdr_encode_hyper(p, devinfo->read_count); in ff_layout_encode_ff_iostat_head()
2144 p = xdr_encode_hyper(p, devinfo->read_bytes); in ff_layout_encode_ff_iostat_head()
2145 p = xdr_encode_hyper(p, devinfo->write_count); in ff_layout_encode_ff_iostat_head()
2146 p = xdr_encode_hyper(p, devinfo->write_bytes); in ff_layout_encode_ff_iostat_head()
2147 encode_opaque_fixed(xdr, devinfo->dev_id.data, NFS4_DEVICEID4_SIZE); in ff_layout_encode_ff_iostat_head()
2153 const struct nfs42_layoutstat_devinfo *devinfo) in ff_layout_encode_ff_iostat() argument
2155 ff_layout_encode_ff_iostat_head(xdr, stateid, devinfo); in ff_layout_encode_ff_iostat()
2156 ff_layout_encode_ff_layoutupdate(xdr, devinfo, in ff_layout_encode_ff_iostat()
2157 devinfo->ld_private.data); in ff_layout_encode_ff_iostat()
2173 &ff_args->devinfo[i]); in ff_layout_encode_iostats_array()
2177 ff_layout_free_iostats_array(struct nfs42_layoutstat_devinfo *devinfo, in ff_layout_free_iostats_array() argument
2183 if (!devinfo[i].ld_private.ops) in ff_layout_free_iostats_array()
2185 if (!devinfo[i].ld_private.ops->free) in ff_layout_free_iostats_array()
2187 devinfo[i].ld_private.ops->free(&devinfo[i].ld_private); in ff_layout_free_iostats_array()
2246 ff_layout_free_iostats_array(ff_args->devinfo, ff_args->num_dev); in ff_layout_free_layoutreturn()
2277 &ff_layout->generic_hdr, &ff_args->devinfo[0], in ff_layout_prepare_layoutreturn()
2278 ARRAY_SIZE(ff_args->devinfo), NFS4_FF_OP_LAYOUTRETURN); in ff_layout_prepare_layoutreturn()
2452 const struct nfs42_layoutstat_devinfo *devinfo, in ff_layout_encode_ff_layoutupdate() argument
2485 struct nfs42_layoutstat_devinfo *devinfo = container_of(opaque, in ff_layout_encode_layoutstats() local
2491 ff_layout_encode_ff_layoutupdate(xdr, devinfo, opaque->data); in ff_layout_encode_layoutstats()
2511 struct nfs42_layoutstat_devinfo *devinfo, in ff_layout_mirror_prepare_stats() argument
2532 memcpy(&devinfo->dev_id, &dev->deviceid, NFS4_DEVICEID4_SIZE); in ff_layout_mirror_prepare_stats()
2533 devinfo->offset = 0; in ff_layout_mirror_prepare_stats()
2534 devinfo->length = NFS4_MAX_UINT64; in ff_layout_mirror_prepare_stats()
2536 devinfo->read_count = mirror->read_stat.io_stat.ops_completed; in ff_layout_mirror_prepare_stats()
2537 devinfo->read_bytes = mirror->read_stat.io_stat.bytes_completed; in ff_layout_mirror_prepare_stats()
2538 devinfo->write_count = mirror->write_stat.io_stat.ops_completed; in ff_layout_mirror_prepare_stats()
2539 devinfo->write_bytes = mirror->write_stat.io_stat.bytes_completed; in ff_layout_mirror_prepare_stats()
2541 devinfo->layout_type = LAYOUT_FLEX_FILES; in ff_layout_mirror_prepare_stats()
2542 devinfo->ld_private.ops = &layoutstat_ops; in ff_layout_mirror_prepare_stats()
2543 devinfo->ld_private.data = mirror; in ff_layout_mirror_prepare_stats()
2545 devinfo++; in ff_layout_mirror_prepare_stats()
2558 args->devinfo = kmalloc_array(dev_count, sizeof(*args->devinfo), in ff_layout_prepare_layoutstats()
2560 if (!args->devinfo) in ff_layout_prepare_layoutstats()
2568 &ff_layout->generic_hdr, &args->devinfo[0], dev_count, in ff_layout_prepare_layoutstats()
2574 kfree(args->devinfo); in ff_layout_prepare_layoutstats()
2575 args->devinfo = NULL; in ff_layout_prepare_layoutstats()