aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_icache.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_icache.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_icache.c')
-rw-r--r--fs/xfs/xfs_icache.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c
index bbc2f2973dcc..4cf7abe50143 100644
--- a/fs/xfs/xfs_icache.c
+++ b/fs/xfs/xfs_icache.c
@@ -893,10 +893,7 @@ xfs_metafile_iget(
struct xfs_trans *tp;
int error;
- error = xfs_trans_alloc_empty(mp, &tp);
- if (error)
- return error;
-
+ tp = xfs_trans_alloc_empty(mp);
error = xfs_trans_metafile_iget(tp, ino, metafile_type, ipp);
xfs_trans_cancel(tp);
return error;