aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2025-07-16 12:43:15 +0000
committerCarlos Maiolino <[email protected]>2025-07-24 15:30:13 +0000
commitd8e1ea43e5a314bc01ec059ce93396639dcf9112 (patch)
tree068c23929c3dc46bc69168bc57ec66b55725e913 /fs/xfs/xfs_trans.c
parentxfs: don't use xfs_trans_reserve in xfs_trans_roll (diff)
downloadkernel-d8e1ea43e5a314bc01ec059ce93396639dcf9112.tar.gz
kernel-d8e1ea43e5a314bc01ec059ce93396639dcf9112.zip
xfs: return the allocated transaction from xfs_trans_alloc_empty
xfs_trans_alloc_empty can't return errors, so return the allocated transaction directly instead of an output double pointer argument. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_trans.c')
-rw-r--r--fs/xfs/xfs_trans.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c
index 8d0aee747f72..ece374d622b3 100644
--- a/fs/xfs/xfs_trans.c
+++ b/fs/xfs/xfs_trans.c
@@ -298,13 +298,11 @@ retry:
* where we can be grabbing buffers at the same time that freeze is trying to
* drain the buffer LRU list.
*/
-int
+struct xfs_trans *
xfs_trans_alloc_empty(
- struct xfs_mount *mp,
- struct xfs_trans **tpp)
+ struct xfs_mount *mp)
{
- *tpp = __xfs_trans_alloc(mp, XFS_TRANS_NO_WRITECOUNT);
- return 0;
+ return __xfs_trans_alloc(mp, XFS_TRANS_NO_WRITECOUNT);
}
/*