diff options
Diffstat (limited to 'fs/xfs/xfs_trans_extfree.c')
| -rw-r--r-- | fs/xfs/xfs_trans_extfree.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/fs/xfs/xfs_trans_extfree.c b/fs/xfs/xfs_trans_extfree.c index 27cce2a9c7e9..f783d5e9fa70 100644 --- a/fs/xfs/xfs_trans_extfree.c +++ b/fs/xfs/xfs_trans_extfree.c | |||
| @@ -23,7 +23,6 @@ | |||
| 23 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
| 24 | #include "xfs_sb.h" | 24 | #include "xfs_sb.h" |
| 25 | #include "xfs_ag.h" | 25 | #include "xfs_ag.h" |
| 26 | #include "xfs_dmapi.h" | ||
| 27 | #include "xfs_mount.h" | 26 | #include "xfs_mount.h" |
| 28 | #include "xfs_trans_priv.h" | 27 | #include "xfs_trans_priv.h" |
| 29 | #include "xfs_extfree_item.h" | 28 | #include "xfs_extfree_item.h" |
| @@ -49,9 +48,8 @@ xfs_trans_get_efi(xfs_trans_t *tp, | |||
| 49 | /* | 48 | /* |
| 50 | * Get a log_item_desc to point at the new item. | 49 | * Get a log_item_desc to point at the new item. |
| 51 | */ | 50 | */ |
| 52 | (void) xfs_trans_add_item(tp, (xfs_log_item_t*)efip); | 51 | xfs_trans_add_item(tp, &efip->efi_item); |
| 53 | 52 | return efip; | |
| 54 | return (efip); | ||
| 55 | } | 53 | } |
| 56 | 54 | ||
| 57 | /* | 55 | /* |
| @@ -65,15 +63,11 @@ xfs_trans_log_efi_extent(xfs_trans_t *tp, | |||
| 65 | xfs_fsblock_t start_block, | 63 | xfs_fsblock_t start_block, |
| 66 | xfs_extlen_t ext_len) | 64 | xfs_extlen_t ext_len) |
| 67 | { | 65 | { |
| 68 | xfs_log_item_desc_t *lidp; | ||
| 69 | uint next_extent; | 66 | uint next_extent; |
| 70 | xfs_extent_t *extp; | 67 | xfs_extent_t *extp; |
| 71 | 68 | ||
| 72 | lidp = xfs_trans_find_item(tp, (xfs_log_item_t*)efip); | ||
| 73 | ASSERT(lidp != NULL); | ||
| 74 | |||
| 75 | tp->t_flags |= XFS_TRANS_DIRTY; | 69 | tp->t_flags |= XFS_TRANS_DIRTY; |
| 76 | lidp->lid_flags |= XFS_LID_DIRTY; | 70 | efip->efi_item.li_desc->lid_flags |= XFS_LID_DIRTY; |
| 77 | 71 | ||
| 78 | next_extent = efip->efi_next_extent; | 72 | next_extent = efip->efi_next_extent; |
| 79 | ASSERT(next_extent < efip->efi_format.efi_nextents); | 73 | ASSERT(next_extent < efip->efi_format.efi_nextents); |
| @@ -106,9 +100,8 @@ xfs_trans_get_efd(xfs_trans_t *tp, | |||
| 106 | /* | 100 | /* |
| 107 | * Get a log_item_desc to point at the new item. | 101 | * Get a log_item_desc to point at the new item. |
| 108 | */ | 102 | */ |
| 109 | (void) xfs_trans_add_item(tp, (xfs_log_item_t*)efdp); | 103 | xfs_trans_add_item(tp, &efdp->efd_item); |
| 110 | 104 | return efdp; | |
| 111 | return (efdp); | ||
| 112 | } | 105 | } |
| 113 | 106 | ||
| 114 | /* | 107 | /* |
| @@ -122,15 +115,11 @@ xfs_trans_log_efd_extent(xfs_trans_t *tp, | |||
| 122 | xfs_fsblock_t start_block, | 115 | xfs_fsblock_t start_block, |
| 123 | xfs_extlen_t ext_len) | 116 | xfs_extlen_t ext_len) |
| 124 | { | 117 | { |
| 125 | xfs_log_item_desc_t *lidp; | ||
| 126 | uint next_extent; | 118 | uint next_extent; |
| 127 | xfs_extent_t *extp; | 119 | xfs_extent_t *extp; |
| 128 | 120 | ||
| 129 | lidp = xfs_trans_find_item(tp, (xfs_log_item_t*)efdp); | ||
| 130 | ASSERT(lidp != NULL); | ||
| 131 | |||
| 132 | tp->t_flags |= XFS_TRANS_DIRTY; | 121 | tp->t_flags |= XFS_TRANS_DIRTY; |
| 133 | lidp->lid_flags |= XFS_LID_DIRTY; | 122 | efdp->efd_item.li_desc->lid_flags |= XFS_LID_DIRTY; |
| 134 | 123 | ||
| 135 | next_extent = efdp->efd_next_extent; | 124 | next_extent = efdp->efd_next_extent; |
| 136 | ASSERT(next_extent < efdp->efd_format.efd_nextents); | 125 | ASSERT(next_extent < efdp->efd_format.efd_nextents); |
