]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: make HARDLINK imply LINK
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 17 Dec 2019 17:57:05 +0000 (20:57 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Dec 2019 02:57:27 +0000 (19:57 -0700)
commit299749dc5b7d56539c2f6f0631044b597b41b00d
treedb34d3d063a05448d1264436c8722ac4c92192bc
parentae1a9974ccd9c46c678f64bee21d968c8fa106b3
io_uring: make HARDLINK imply LINK

The rules are as follows, if IOSQE_IO_HARDLINK is specified, then it's a
link and there is no need to set IOSQE_IO_LINK separately, though it
could be there. Add proper check and ensure that IOSQE_IO_HARDLINK
implies IOSQE_IO_LINK.

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