ipc: use rlimit helpers
authorJiri Slaby <jslaby@suse.cz>
Wed, 10 Mar 2010 23:23:05 +0000 (15:23 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Mar 2010 23:52:39 +0000 (15:52 -0800)
commitf1eb1332b8f07e937add24c6fd2ac40b8737a2f4
tree43bfaac596ae20dcab088b870406e58a2bb4b78a
parentd6db2ade10852b7c665b361239c3411abaa880b5
ipc: use rlimit helpers

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 ("resource: add helpers for
fetching rlimits") or ACCESS_ONCE if not applicable.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/mqueue.c
ipc/shm.c