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)
commitb2e9685283127f30e7f2b466af0046ff9bd27a86
tree2a76a3532137b1e8f5722f2a500ffe174fe8f3cd
parent600cf3f8b3f68ad22ee9af4cf24b0a96512f7fbe
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