spa_taskq_dispatch_ent: simplify arguments
commit0a543db37111c28085043da89e452ea6b131c019
authorRob Norris <rob.norris@klarasystems.com>
Thu, 2 May 2024 02:13:38 +0000 (2 12:13 +1000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 14 May 2024 16:40:16 +0000 (14 09:40 -0700)
tree4b4e62a1bed940b80730f89c0e66d491c1dd833e
parent515c4dd2130a2c986640522d298a224ddd7e6018
spa_taskq_dispatch_ent: simplify arguments

This renames it to spa_taskq_dispatch(), and reduces and simplifies its
arguments based on these observations from its two call sites:

- arg is always the zio, so it can be typed that way, and we don't need
  to provide it twice;
- ent is always &zio->io_tqent, and zio is always provided, so we can
  use it directly;
- the only flag used is TQ_FRONT, which can just be a bool;
- zio != NULL was part of the "use allocator" test, but it never would
  have got that far, because that arg was only set to NULL in the
  reexecute path, which is forced to type CLAIM, so the condition would
  fail at t == WRITE anyway.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16151
include/sys/spa_impl.h
module/zfs/spa.c
module/zfs/zio.c