]> git.baikalelectronics.ru Git - kernel.git/commit
uapi: linux/blkzoned.h: fix BLKGETZONESZ and BLKGETNRZONES definitions
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 16 Dec 2018 01:49:52 +0000 (04:49 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Dec 2018 02:52:02 +0000 (19:52 -0700)
commitdaa5a232974cadf74374d7b70a4c62ab9955b0e4
tree7da11e56231c232efb17119ffa284a1769b46fca
parentd09b9d756780ff343d4618f5f0b38301ff9fd953
uapi: linux/blkzoned.h: fix BLKGETZONESZ and BLKGETNRZONES definitions

According to the documentation in include/uapi/asm-generic/ioctl.h,
_IOW means userspace is writing and kernel is reading, and
_IOR means userspace is reading and kernel is writing.

In case of these two ioctls, kernel is writing and userspace is reading,
so they have to be _IOR instead of _IOW.

Fixes: 947daf823dc94 ("block: Introduce BLKGETZONESZ ioctl")
Fixes: 35e7269bdb40c ("block: Introduce BLKGETNRZONES ioctl")
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/blkzoned.h