diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-11-27 21:25:36 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2020-01-03 09:42:52 +0100 |
commit | 77b9040195dea3fcddf19e136c9e99a501351778 (patch) | |
tree | 27fa410983007e002eb45480270c56f0339690c3 /drivers/scsi/sr.c | |
parent | compat_ioctl: move sys_compat_ioctl() to ioctl.c (diff) | |
download | linux-77b9040195dea3fcddf19e136c9e99a501351778.tar.xz linux-77b9040195dea3fcddf19e136c9e99a501351778.zip |
compat_ioctl: simplify the implementation
Now that both native and compat ioctl syscalls are
in the same file, a couple of simplifications can
be made, bringing the implementation closer together:
- do_vfs_ioctl(), ioctl_preallocate(), and compat_ioctl_preallocate()
can become static, allowing the compiler to optimize better
- slightly update the coding style for consistency between
the functions.
- rather than listing each command in two switch statements
for the compat case, just call a single function that has
all the common commands.
As a side-effect, FS_IOC_RESVSP/FS_IOC_RESVSP64 are now available
to x86 compat tasks, along with FS_IOC_RESVSP_32/FS_IOC_RESVSP64_32.
This is harmless for i386 emulation, and can be considered a bugfix
for x32 emulation, which never supported these in the past.
Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/scsi/sr.c')
0 files changed, 0 insertions, 0 deletions