commit | b2e9685283127f30e7f2b466af0046ff9bd27a86 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Sat Oct 10 18:34:16 2020 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Sat Oct 10 12:49:25 2020 -0600 |
tree | 2a76a3532137b1e8f5722f2a500ffe174fe8f3cd | |
parent | 600cf3f8b3f68ad22ee9af4cf24b0a96512f7fbe [diff] |
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>