Lines Matching refs:efdp

301 xfs_efd_item_free(struct xfs_efd_log_item *efdp)  in xfs_efd_item_free()  argument
303 if (efdp->efd_format.efd_nextents > XFS_EFD_MAX_FAST_EXTENTS) in xfs_efd_item_free()
304 kmem_free(efdp); in xfs_efd_item_free()
306 kmem_zone_free(xfs_efd_zone, efdp); in xfs_efd_item_free()
316 struct xfs_efd_log_item *efdp) in xfs_efd_item_sizeof() argument
319 (efdp->efd_format.efd_nextents - 1) * sizeof(xfs_extent_t); in xfs_efd_item_sizeof()
344 struct xfs_efd_log_item *efdp = EFD_ITEM(lip); in xfs_efd_item_format() local
347 ASSERT(efdp->efd_next_extent == efdp->efd_format.efd_nextents); in xfs_efd_item_format()
349 efdp->efd_format.efd_type = XFS_LI_EFD; in xfs_efd_item_format()
350 efdp->efd_format.efd_size = 1; in xfs_efd_item_format()
353 &efdp->efd_format, in xfs_efd_item_format()
354 xfs_efd_item_sizeof(efdp)); in xfs_efd_item_format()
397 struct xfs_efd_log_item *efdp = EFD_ITEM(lip); in xfs_efd_item_unlock() local
400 xfs_efi_release(efdp->efd_efip); in xfs_efd_item_unlock()
401 xfs_efd_item_free(efdp); in xfs_efd_item_unlock()
416 struct xfs_efd_log_item *efdp = EFD_ITEM(lip); in xfs_efd_item_committed() local
424 xfs_efi_release(efdp->efd_efip); in xfs_efd_item_committed()
425 xfs_efd_item_free(efdp); in xfs_efd_item_committed()
468 struct xfs_efd_log_item *efdp; in xfs_efd_init() local
475 efdp = kmem_zalloc(size, KM_SLEEP); in xfs_efd_init()
477 efdp = kmem_zone_zalloc(xfs_efd_zone, KM_SLEEP); in xfs_efd_init()
480 xfs_log_item_init(mp, &efdp->efd_item, XFS_LI_EFD, &xfs_efd_item_ops); in xfs_efd_init()
481 efdp->efd_efip = efip; in xfs_efd_init()
482 efdp->efd_format.efd_nextents = nextents; in xfs_efd_init()
483 efdp->efd_format.efd_efi_id = efip->efi_format.efi_id; in xfs_efd_init()
485 return efdp; in xfs_efd_init()