Lines Matching refs:efdp
230 xfs_efd_item_free(struct xfs_efd_log_item *efdp) in xfs_efd_item_free() argument
232 kvfree(efdp->efd_item.li_lv_shadow); in xfs_efd_item_free()
233 if (efdp->efd_format.efd_nextents > XFS_EFD_MAX_FAST_EXTENTS) in xfs_efd_item_free()
234 kfree(efdp); in xfs_efd_item_free()
236 kmem_cache_free(xfs_efd_cache, efdp); in xfs_efd_item_free()
245 struct xfs_efd_log_item *efdp = EFD_ITEM(lip); in xfs_efd_item_size() local
248 *nbytes += xfs_efd_log_format_sizeof(efdp->efd_format.efd_nextents); in xfs_efd_item_size()
263 struct xfs_efd_log_item *efdp = EFD_ITEM(lip); in xfs_efd_item_format() local
266 ASSERT(efdp->efd_next_extent == efdp->efd_format.efd_nextents); in xfs_efd_item_format()
268 efdp->efd_format.efd_type = XFS_LI_EFD; in xfs_efd_item_format()
269 efdp->efd_format.efd_size = 1; in xfs_efd_item_format()
272 &efdp->efd_format, in xfs_efd_item_format()
273 xfs_efd_log_format_sizeof(efdp->efd_format.efd_nextents)); in xfs_efd_item_format()
284 struct xfs_efd_log_item *efdp = EFD_ITEM(lip); in xfs_efd_item_release() local
286 xfs_efi_release(efdp->efd_efip); in xfs_efd_item_release()
287 xfs_efd_item_free(efdp); in xfs_efd_item_release()
324 struct xfs_efd_log_item *efdp) in xfs_efd_from_efi() argument
326 struct xfs_efi_log_item *efip = efdp->efd_efip; in xfs_efd_from_efi()
330 ASSERT(efdp->efd_next_extent < efip->efi_format.efi_nextents); in xfs_efd_from_efi()
333 efdp->efd_format.efd_extents[i] = in xfs_efd_from_efi()
336 efdp->efd_next_extent = efip->efi_format.efi_nextents; in xfs_efd_from_efi()
341 struct xfs_efd_log_item *efdp, in xfs_efd_add_extent() argument
346 ASSERT(efdp->efd_next_extent < efdp->efd_format.efd_nextents); in xfs_efd_add_extent()
348 extp = &efdp->efd_format.efd_extents[efdp->efd_next_extent]; in xfs_efd_add_extent()
352 efdp->efd_next_extent++; in xfs_efd_add_extent()
418 struct xfs_efd_log_item *efdp; in xfs_extent_free_create_done() local
423 efdp = kzalloc(xfs_efd_log_item_sizeof(count), in xfs_extent_free_create_done()
426 efdp = kmem_cache_zalloc(xfs_efd_cache, in xfs_extent_free_create_done()
430 xfs_log_item_init(tp->t_mountp, &efdp->efd_item, XFS_LI_EFD, in xfs_extent_free_create_done()
432 efdp->efd_efip = efip; in xfs_extent_free_create_done()
433 efdp->efd_format.efd_nextents = count; in xfs_extent_free_create_done()
434 efdp->efd_format.efd_efi_id = efip->efi_format.efi_id; in xfs_extent_free_create_done()
436 return &efdp->efd_item; in xfs_extent_free_create_done()
480 struct xfs_efd_log_item *efdp = EFD_ITEM(done); in xfs_extent_free_finish_item() local
506 xfs_efd_from_efi(efdp); in xfs_extent_free_finish_item()
510 xfs_efd_add_extent(efdp, xefi); in xfs_extent_free_finish_item()
536 struct xfs_efd_log_item *efdp = EFD_ITEM(done); in xfs_agfl_free_finish_item() local
553 xfs_efd_add_extent(efdp, xefi); in xfs_agfl_free_finish_item()
647 struct xfs_efd_log_item *efdp = EFD_ITEM(done_item); in xfs_extent_free_relog_intent() local
655 efdp->efd_next_extent = count; in xfs_extent_free_relog_intent()
656 memcpy(efdp->efd_format.efd_extents, extp, count * sizeof(*extp)); in xfs_extent_free_relog_intent()