rlimits: switch more rlimit syscalls to do_prlimit
authorJiri Slaby <jirislaby@gmail.com>
Tue, 4 May 2010 09:28:25 +0000 (11:28 +0200)
committerJiri Slaby <jirislaby@gmail.com>
Fri, 16 Jul 2010 07:48:48 +0000 (09:48 +0200)
commitb95183453af2ed14a5c7027e58049c9fd17e92ce
tree8db2687b9508de182615915c7df1edf26d08638c
parent5b41535aac0c07135ff6a4c5c2ae115d1c20c0bc
rlimits: switch more rlimit syscalls to do_prlimit

After we added more generic do_prlimit, switch sys_getrlimit to that.
Also switch compat handling, so we can get rid of ugly __user casts
and avoid setting process' address limit to kernel data and back.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
kernel/compat.c
kernel/sys.c