aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_trans.c')
-rw-r--r--fs/xfs/xfs_trans.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c
index 29f5e5424897..76922793f64f 100644
--- a/fs/xfs/xfs_trans.c
+++ b/fs/xfs/xfs_trans.c
@@ -1755,7 +1755,6 @@ xfs_trans_commit_cil(
1755 int flags) 1755 int flags)
1756{ 1756{
1757 struct xfs_log_vec *log_vector; 1757 struct xfs_log_vec *log_vector;
1758 int error;
1759 1758
1760 /* 1759 /*
1761 * Get each log item to allocate a vector structure for 1760 * Get each log item to allocate a vector structure for
@@ -1766,9 +1765,7 @@ xfs_trans_commit_cil(
1766 if (!log_vector) 1765 if (!log_vector)
1767 return ENOMEM; 1766 return ENOMEM;
1768 1767
1769 error = xfs_log_commit_cil(mp, tp, log_vector, commit_lsn, flags); 1768 xfs_log_commit_cil(mp, tp, log_vector, commit_lsn, flags);
1770 if (error)
1771 return error;
1772 1769
1773 current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS); 1770 current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS);
1774 xfs_trans_free(tp); 1771 xfs_trans_free(tp);