]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xfs: use xfs_trans_reserve_more in xfs_trans_reserve_more_inode
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Jul 2025 12:43:11 +0000 (14:43 +0200)
committerCarlos Maiolino <cem@kernel.org>
Thu, 24 Jul 2025 15:30:13 +0000 (17:30 +0200)
Instead of duplicating the empty transacaction reservation
definition.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_trans.c

index b4a07af513bada591b2b974699e174b8dc87dda7..8b15bfe68774d3e8a839d5171ace06cba5a04de4 100644 (file)
@@ -1163,14 +1163,13 @@ xfs_trans_reserve_more_inode(
        unsigned int            rblocks,
        bool                    force_quota)
 {
-       struct xfs_trans_res    resv = { };
        struct xfs_mount        *mp = ip->i_mount;
        unsigned int            rtx = xfs_extlen_to_rtxlen(mp, rblocks);
        int                     error;
 
        xfs_assert_ilocked(ip, XFS_ILOCK_EXCL);
 
-       error = xfs_trans_reserve(tp, &resv, dblocks, rtx);
+       error = xfs_trans_reserve_more(tp, dblocks, rtx);
        if (error)
                return error;