Lines Matching refs:lseg
110 struct pnfs_layout_segment lseg; member
117 OBJIO_LSEG(struct pnfs_layout_segment *lseg) in OBJIO_LSEG() argument
119 return container_of(lseg, struct objio_segment, lseg); in OBJIO_LSEG()
230 struct objio_segment *lseg; in __alloc_objio_seg() local
231 size_t lseg_size = sizeof(*lseg) + in __alloc_objio_seg()
232 numdevs * sizeof(lseg->oc.ods[0]) + in __alloc_objio_seg()
233 numdevs * sizeof(*lseg->oc.comps); in __alloc_objio_seg()
235 lseg = kzalloc(lseg_size, gfp_flags); in __alloc_objio_seg()
236 if (unlikely(!lseg)) { in __alloc_objio_seg()
242 lseg->oc.numdevs = numdevs; in __alloc_objio_seg()
243 lseg->oc.single_comp = EC_MULTPLE_COMPS; in __alloc_objio_seg()
244 lseg->oc.ods = (void *)(lseg + 1); in __alloc_objio_seg()
245 lseg->oc.comps = (void *)(lseg->oc.ods + numdevs); in __alloc_objio_seg()
247 *pseg = lseg; in __alloc_objio_seg()
298 *outp = &objio_seg->lseg; in objio_alloc_lseg()
308 void objio_free_lseg(struct pnfs_layout_segment *lseg) in objio_free_lseg() argument
311 struct objio_segment *objio_seg = OBJIO_LSEG(lseg); in objio_free_lseg()
327 struct pnfs_layout_segment *lseg, struct page **pages, unsigned pgbase, in objio_alloc_io_state() argument
331 struct objio_segment *objio_seg = OBJIO_LSEG(lseg); in objio_alloc_io_state()
449 hdr->lseg, rdata->args.pages, rdata->args.pgbase, in objio_read_pagelist()
541 hdr->lseg, wdata->args.pages, wdata->args.pgbase, in objio_write_pagelist()