]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: keep a pointer ref_node in file_data
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 10 Oct 2020 17:34:16 +0000 (18:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 10 Oct 2020 18:49:25 +0000 (12:49 -0600)
commit31cfd6f58ad4118b736a3be657868d6957bf80a2
tree2a76a3532137b1e8f5722f2a500ffe174fe8f3cd
parent41ecfd07ce9174b0d416a7c9798bca3e7f1c5096
io_uring: keep a pointer ref_node in file_data

->cur_refs of struct fixed_file_data always points to percpu_ref
embedded into struct fixed_file_ref_node. Don't overuse container_of()
and offsetting, and point directly to fixed_file_ref_node.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c