compat_ioctl: simplify calling of handlers
authorArnd Bergmann <arnd@arndb.de>
Thu, 5 Nov 2009 18:13:51 +0000 (19:13 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 10 Dec 2009 21:52:10 +0000 (22:52 +0100)
commit789f0f89118a80a3ff5309371e5820f623ed2a53
treeb4f178d169be07bdc9cbc629d4f9dab896233408
parent5a07ea0b97f206ed23a5850079b7f322e7730869
compat_ioctl: simplify calling of handlers

The compat_ioctl array now contains only entries for ioctl numbers
that do not require a separate handler. By special-casing the
ULONG_IOCTL case in the do_ioctl_trans function, we can kill the
final use of a function pointer in the array.

   text    data     bss     dec     hex filename
   7539   13352    2080   22971    59bb before/fs/compat_ioctl.o
   7910    8552    2080   18542    486e after/fs/compat_ioctl.o

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
fs/compat_ioctl.c