Lines Matching defs:efip
42 struct xfs_efi_log_item *efip)
44 if (efip->efi_format.efi_nextents > XFS_EFI_MAX_FAST_EXTENTS)
45 kmem_free(efip);
47 kmem_zone_free(xfs_efi_zone, efip);
74 struct xfs_efi_log_item *efip = EFI_ITEM(lip);
77 ASSERT(efip->efi_next_extent == efip->efi_format.efi_nextents);
79 efip->efi_format.efi_type = XFS_LI_EFI;
82 size += (efip->efi_format.efi_nextents - 1) * sizeof(xfs_extent_t);
83 efip->efi_format.efi_size = 1;
85 log_vector->i_addr = &efip->efi_format;
112 struct xfs_efi_log_item *efip = EFI_ITEM(lip);
116 if (efip->efi_flags & XFS_EFI_CANCELED) {
122 xfs_efi_item_free(efip);
124 efip->efi_flags |= XFS_EFI_COMMITTED;
218 struct xfs_efi_log_item *efip;
225 efip = kmem_zalloc(size, KM_SLEEP);
227 efip = kmem_zone_zalloc(xfs_efi_zone, KM_SLEEP);
230 xfs_log_item_init(mp, &efip->efi_item, XFS_LI_EFI, &xfs_efi_item_ops);
231 efip->efi_format.efi_nextents = nextents;
232 efip->efi_format.efi_id = (__psint_t)(void*)efip;
234 return efip;
303 xfs_efi_release(xfs_efi_log_item_t *efip,
306 struct xfs_ail *ailp = efip->efi_item.li_ailp;
309 ASSERT(efip->efi_next_extent > 0);
310 ASSERT(efip->efi_flags & XFS_EFI_COMMITTED);
313 ASSERT(efip->efi_next_extent >= nextents);
314 efip->efi_next_extent -= nextents;
315 extents_left = efip->efi_next_extent;
318 xfs_trans_ail_delete(ailp, (xfs_log_item_t *)efip);
319 xfs_efi_item_free(efip);
492 struct xfs_efi_log_item *efip,
509 efdp->efd_efip = efip;
511 efdp->efd_format.efd_efi_id = efip->efi_format.efi_id;