Lines Matching refs:lseg
64 struct pnfs_layout_segment lseg; member
71 OBJIO_LSEG(struct pnfs_layout_segment *lseg) in OBJIO_LSEG() argument
73 return container_of(lseg, struct objio_segment, lseg); in OBJIO_LSEG()
189 struct objio_segment *lseg; in __alloc_objio_seg() local
190 size_t lseg_size = sizeof(*lseg) + in __alloc_objio_seg()
191 numdevs * sizeof(lseg->oc.ods[0]) + in __alloc_objio_seg()
192 numdevs * sizeof(*lseg->oc.comps); in __alloc_objio_seg()
194 lseg = kzalloc(lseg_size, gfp_flags); in __alloc_objio_seg()
195 if (unlikely(!lseg)) { in __alloc_objio_seg()
201 lseg->oc.numdevs = numdevs; in __alloc_objio_seg()
202 lseg->oc.single_comp = EC_MULTPLE_COMPS; in __alloc_objio_seg()
203 lseg->oc.ods = (void *)(lseg + 1); in __alloc_objio_seg()
204 lseg->oc.comps = (void *)(lseg->oc.ods + numdevs); in __alloc_objio_seg()
206 *pseg = lseg; in __alloc_objio_seg()
266 *outp = &objio_seg->lseg; in objio_alloc_lseg()
276 void objio_free_lseg(struct pnfs_layout_segment *lseg) in objio_free_lseg() argument
279 struct objio_segment *objio_seg = OBJIO_LSEG(lseg); in objio_free_lseg()
295 struct pnfs_layout_segment *lseg, struct page **pages, unsigned pgbase, in objio_alloc_io_state() argument
299 struct objio_segment *objio_seg = OBJIO_LSEG(lseg); in objio_alloc_io_state()
416 hdr->lseg, hdr->args.pages, hdr->args.pgbase, in objio_read_pagelist()
507 hdr->lseg, hdr->args.pages, hdr->args.pgbase, in objio_write_pagelist()