aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/xfs_bmap_util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c
index 296160b8e78c..057f671811d6 100644
--- a/fs/xfs/xfs_bmap_util.c
+++ b/fs/xfs/xfs_bmap_util.c
@@ -1519,7 +1519,6 @@ xfs_collapse_file_space(
1519 1519
1520 while (!error && !done) { 1520 while (!error && !done) {
1521 tp = xfs_trans_alloc(mp, XFS_TRANS_DIOSTRAT); 1521 tp = xfs_trans_alloc(mp, XFS_TRANS_DIOSTRAT);
1522 tp->t_flags |= XFS_TRANS_RESERVE;
1523 /* 1522 /*
1524 * We would need to reserve permanent block for transaction. 1523 * We would need to reserve permanent block for transaction.
1525 * This will come into picture when after shifting extent into 1524 * This will come into picture when after shifting extent into
@@ -1529,7 +1528,6 @@ xfs_collapse_file_space(
1529 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_write, 1528 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_write,
1530 XFS_DIOSTRAT_SPACE_RES(mp, 0), 0); 1529 XFS_DIOSTRAT_SPACE_RES(mp, 0), 0);
1531 if (error) { 1530 if (error) {
1532 ASSERT(error == ENOSPC || XFS_FORCED_SHUTDOWN(mp));
1533 xfs_trans_cancel(tp, 0); 1531 xfs_trans_cancel(tp, 0);
1534 break; 1532 break;
1535 } 1533 }