]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: define and set show_fdinfo only if procfs is enabled
authorTobias Klauser <tklauser@distanz.ch>
Wed, 26 Feb 2020 17:38:32 +0000 (18:38 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Feb 2020 13:56:21 +0000 (06:56 -0700)
commit4389dd640d7d84b5987a348a2c557e9e8239af8b
tree4b6b3fdfa7411b8ba3e2ca57a920e64c7ea2e9f7
parent113765cdfe2d12508d9af2a67b4ce148bd2fcec3
io_uring: define and set show_fdinfo only if procfs is enabled

Follow the pattern used with other *_show_fdinfo functions and only
define and use io_uring_show_fdinfo and its helper functions if
CONFIG_PROC_FS is set.

Fixes: 0045669fc27b ("io_uring: add ->show_fdinfo() for the io_uring file descriptor")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c