hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/xfs/xfs_extfree_item.h
....@@ -17,11 +17,6 @@
1717 #define XFS_EFI_MAX_FAST_EXTENTS 16
1818
1919 /*
20
- * Define EFI flag bits. Manipulated by set/clear/test_bit operators.
21
- */
22
-#define XFS_EFI_RECOVERED 1
23
-
24
-/*
2520 * This is the "extent free intention" log item. It is used to log the fact
2621 * that some extents need to be free. It is used in conjunction with the
2722 * "extent free done" log item described below.
....@@ -50,25 +45,24 @@
5045 * of commit failure or log I/O errors. Note that the EFD is not inserted in the
5146 * AIL, so at this point both the EFI and EFD are freed.
5247 */
53
-typedef struct xfs_efi_log_item {
54
- xfs_log_item_t efi_item;
48
+struct xfs_efi_log_item {
49
+ struct xfs_log_item efi_item;
5550 atomic_t efi_refcount;
5651 atomic_t efi_next_extent;
57
- unsigned long efi_flags; /* misc flags */
5852 xfs_efi_log_format_t efi_format;
59
-} xfs_efi_log_item_t;
53
+};
6054
6155 /*
6256 * This is the "extent free done" log item. It is used to log
6357 * the fact that some extents earlier mentioned in an efi item
6458 * have been freed.
6559 */
66
-typedef struct xfs_efd_log_item {
67
- xfs_log_item_t efd_item;
68
- xfs_efi_log_item_t *efd_efip;
60
+struct xfs_efd_log_item {
61
+ struct xfs_log_item efd_item;
62
+ struct xfs_efi_log_item *efd_efip;
6963 uint efd_next_extent;
7064 xfs_efd_log_format_t efd_format;
71
-} xfs_efd_log_item_t;
65
+};
7266
7367 /*
7468 * Max number of extents in fast allocation path.
....@@ -77,16 +71,5 @@
7771
7872 extern struct kmem_zone *xfs_efi_zone;
7973 extern struct kmem_zone *xfs_efd_zone;
80
-
81
-xfs_efi_log_item_t *xfs_efi_init(struct xfs_mount *, uint);
82
-xfs_efd_log_item_t *xfs_efd_init(struct xfs_mount *, xfs_efi_log_item_t *,
83
- uint);
84
-int xfs_efi_copy_format(xfs_log_iovec_t *buf,
85
- xfs_efi_log_format_t *dst_efi_fmt);
86
-void xfs_efi_item_free(xfs_efi_log_item_t *);
87
-void xfs_efi_release(struct xfs_efi_log_item *);
88
-
89
-int xfs_efi_recover(struct xfs_mount *mp,
90
- struct xfs_efi_log_item *efip);
9174
9275 #endif /* __XFS_EXTFREE_ITEM_H__ */