kernel: avoid switch in lseek
authorAlan Cox <alan@linux.intel.com>
Thu, 14 Dec 2017 11:48:30 +0000 (11:48 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 14 Dec 2017 11:48:30 +0000 (11:48 +0000)
commit16be2c4b231e7b4e6d626a118818f4283e1ae03a
tree6d4adb5d63723d670b709df068c1032bd785e765
parent9cb5d967f5d13d922cdfd69592676de34ccf5290
kernel: avoid switch in lseek

Not all our compilers do the smart thing with this, and we get better code using
if statements on those that don't.
Kernel/syscall_fs.c