]> git.baikalelectronics.ru Git - kernel.git/commit
mm: use rlimit helpers
authorJiri Slaby <jslaby@suse.cz>
Fri, 5 Mar 2010 21:41:44 +0000 (13:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:24 +0000 (11:26 -0800)
commit7d2e012d600a268e736233eb9422cd8810003533
treee977fb5eecccf1446296fd196072bd1287b0a92f
parent38f421f093bbfc402fe62f74689e5aad601eaba9
mm: 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
ba538bea66804b2f0624f29f9ef5d4db3f1b8188 ("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>
mm/filemap.c
mm/mlock.c
mm/mmap.c
mm/mremap.c