aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/xfs_log_recover.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index 3b804b93b282..071672969421 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -2733,21 +2733,13 @@ xlog_recover_do_efd_trans(
2733 * AIL lock. 2733 * AIL lock.
2734 */ 2734 */
2735 xfs_trans_delete_ail(mp, lip); 2735 xfs_trans_delete_ail(mp, lip);
2736 break; 2736 xfs_efi_item_free(efip);
2737 return;
2737 } 2738 }
2738 } 2739 }
2739 lip = xfs_trans_next_ail(mp, lip, &gen, NULL); 2740 lip = xfs_trans_next_ail(mp, lip, &gen, NULL);
2740 } 2741 }
2741 2742 spin_unlock(&mp->m_ail_lock);
2742 /*
2743 * If we found it, then free it up. If it wasn't there, it
2744 * must have been overwritten in the log. Oh well.
2745 */
2746 if (lip != NULL) {
2747 xfs_efi_item_free(efip);
2748 } else {
2749 spin_unlock(&mp->m_ail_lock);
2750 }
2751} 2743}
2752 2744
2753/* 2745/*