@@ -239,14 +239,10 @@ xfs_bulkstat_one(
239239 * Grab an empty transaction so that we can use its recursive buffer
240240 * locking abilities to detect cycles in the inobt without deadlocking.
241241 */
242- error = xfs_trans_alloc_empty (breq -> mp , & tp );
243- if (error )
244- goto out ;
245-
242+ tp = xfs_trans_alloc_empty (breq -> mp );
246243 error = xfs_bulkstat_one_int (breq -> mp , breq -> idmap , tp ,
247244 breq -> startino , & bc );
248245 xfs_trans_cancel (tp );
249- out :
250246 kfree (bc .buf );
251247
252248 /*
@@ -331,17 +327,13 @@ xfs_bulkstat(
331327 * Grab an empty transaction so that we can use its recursive buffer
332328 * locking abilities to detect cycles in the inobt without deadlocking.
333329 */
334- error = xfs_trans_alloc_empty (breq -> mp , & tp );
335- if (error )
336- goto out ;
337-
330+ tp = xfs_trans_alloc_empty (breq -> mp );
338331 if (breq -> flags & XFS_IBULK_SAME_AG )
339332 iwalk_flags |= XFS_IWALK_SAME_AG ;
340333
341334 error = xfs_iwalk (breq -> mp , tp , breq -> startino , iwalk_flags ,
342335 xfs_bulkstat_iwalk , breq -> icount , & bc );
343336 xfs_trans_cancel (tp );
344- out :
345337 kfree (bc .buf );
346338
347339 /*
@@ -464,14 +456,10 @@ xfs_inumbers(
464456 * Grab an empty transaction so that we can use its recursive buffer
465457 * locking abilities to detect cycles in the inobt without deadlocking.
466458 */
467- error = xfs_trans_alloc_empty (breq -> mp , & tp );
468- if (error )
469- goto out ;
470-
459+ tp = xfs_trans_alloc_empty (breq -> mp );
471460 error = xfs_inobt_walk (breq -> mp , tp , breq -> startino , breq -> flags ,
472461 xfs_inumbers_walk , breq -> icount , & ic );
473462 xfs_trans_cancel (tp );
474- out :
475463
476464 /*
477465 * We found some inode groups, so clear the error status and return
0 commit comments