OSDN Git Service

compat_ioctl: block: simplify compat_blkpg_ioctl()
authorArnd Bergmann <arnd@arndb.de>
Thu, 28 Nov 2019 10:28:41 +0000 (11:28 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 Jan 2020 08:42:52 +0000 (09:42 +0100)
commit5fb889f587fa2ae486e067d8a00df955ae6492b3
treea4a0b6b07eddc75bea66f97bfec4c45e7211939e
parentbdc1ddad3e5f385698df150a0cfaaac62b491e7e
compat_ioctl: block: simplify compat_blkpg_ioctl()

There is no need to go through a compat_alloc_user_space()
copy any more, just wrap the function in a small helper that
works the same way for native and compat mode.

Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
block/ioctl.c