diff options
| author | Christoph Hellwig <[email protected]> | 2025-07-16 12:43:15 +0000 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-07-24 15:30:13 +0000 |
| commit | d8e1ea43e5a314bc01ec059ce93396639dcf9112 (patch) | |
| tree | 068c23929c3dc46bc69168bc57ec66b55725e913 /fs/xfs/xfs_notify_failure.c | |
| parent | xfs: don't use xfs_trans_reserve in xfs_trans_roll (diff) | |
| download | kernel-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_notify_failure.c')
| -rw-r--r-- | fs/xfs/xfs_notify_failure.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/xfs/xfs_notify_failure.c b/fs/xfs/xfs_notify_failure.c index 42e9c72b85c0..fbd521f89874 100644 --- a/fs/xfs/xfs_notify_failure.c +++ b/fs/xfs/xfs_notify_failure.c @@ -279,10 +279,7 @@ xfs_dax_notify_dev_failure( kernel_frozen = xfs_dax_notify_failure_freeze(mp) == 0; } - error = xfs_trans_alloc_empty(mp, &tp); - if (error) - goto out; - + tp = xfs_trans_alloc_empty(mp); start_gno = xfs_fsb_to_gno(mp, start_bno, type); end_gno = xfs_fsb_to_gno(mp, end_bno, type); while ((xg = xfs_group_next_range(mp, xg, start_gno, end_gno, type))) { |
