io_uring/rsrc: use rq_data_dir() to compute bvec dir
authorCaleb Sander Mateos <csander@purestorage.com>
Fri, 28 Feb 2025 22:30:56 +0000 (15:30 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 1 Mar 2025 02:11:55 +0000 (19:11 -0700)
commit2fced37638a897be4e0ac724d93a23a4e38633a6
tree9e4038a452cd200da3eaa29761ab80642c70740a
parentbedc9cbc5f9709b97646fe3423dbf530b74b09d5
io_uring/rsrc: use rq_data_dir() to compute bvec dir

The macro rq_data_dir() already computes a request's data direction.
Use it in place of the if-else to set imu->dir.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250228223057.615284-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c