SPARC: use helpers for rlimits
authorJiri Slaby <jslaby@suse.cz>
Fri, 8 Jan 2010 08:03:26 +0000 (00:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Jan 2010 08:03:26 +0000 (00:03 -0800)
commit76704fb56c7317ae02c3267fc31d215f3a2528ca
tree9175710b17e36663ef32f49ad990d894ca9d1491
parent6df1c176994fab993f3112e3e4145a7d2bae64d0
SPARC: use helpers for rlimits

Make sure compiler won't do weird things with limits. E.g. fetching
them twice may return 2 different values after writable limits are
implemented.

I.e. either use rlimit helpers added in
3e10e716abf3c71bdb5d86b8f507f9e72236c9cd
or ACCESS_ONCE if not applicable.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/sys_sparc_64.c