[<prev] [next>] [day] [month] [year] [list]
Message-ID: <b1708d9d-53eb-4275-82f4-f389f0200a7f@moroto.mountain>
Date: Wed, 10 Jan 2024 21:53:59 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Chandan Babu R <chandan.babu@...cle.com>,
Eric Sandeen <sandeen@...hat.com>
Cc: "Darrick J. Wong" <djwong@...nel.org>, linux-xfs@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: [PATCH] xfs: delete unnecessary check in xfs_growfs_data_private()
Commit 84712492e6da ("xfs: short circuit xfs_growfs_data_private() if
delta is zero") added a check for whether delta is zero to the start of
the function and now this check is no longer required.
Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
---
fs/xfs/xfs_fsops.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c
index 83f708f62ed9..6de8c5f428b6 100644
--- a/fs/xfs/xfs_fsops.c
+++ b/fs/xfs/xfs_fsops.c
@@ -180,8 +180,7 @@ xfs_growfs_data_private(
*/
if (nagcount > oagcount)
xfs_trans_mod_sb(tp, XFS_TRANS_SB_AGCOUNT, nagcount - oagcount);
- if (delta)
- xfs_trans_mod_sb(tp, XFS_TRANS_SB_DBLOCKS, delta);
+ xfs_trans_mod_sb(tp, XFS_TRANS_SB_DBLOCKS, delta);
if (id.nfree)
xfs_trans_mod_sb(tp, XFS_TRANS_SB_FDBLOCKS, id.nfree);
--
2.43.0
Powered by blists - more mailing lists