]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: drop io_file_put() 'file' argument
authorJens Axboe <axboe@kernel.dk>
Sat, 13 Apr 2019 17:50:54 +0000 (11:50 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 14 Apr 2019 01:08:22 +0000 (19:08 -0600)
commite225645118c1df2bd9fe8e38f6d55d2e9b02072a
tree5269b98bee6e45d1230a59454b97fec30cb64b6a
parentf73afcbab1b7d43af7de1ad8f61ebf0173afe60b
io_uring: drop io_file_put() 'file' argument

Since the fget/fput handling was reworked in commit 0063b7aa302f, we
never call io_file_put() with state == NULL (and hence file != NULL)
anymore. Remove that case.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c