fs: use rlimit helpers
commitd554ed895dc8f293cc712c71f14b101ace82579a
authorJiri Slaby <jslaby@suse.cz>
Fri, 5 Mar 2010 21:42:42 +0000 (5 13:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:29 +0000 (6 11:26 -0800)
treefd29ba33d640e156e2ca4267ffbdb9dc566fd3d6
parent221e3ebf6d5f2625373573155924e39f196c5d3d
fs: 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 commit 3e10e716abf3 ("resource:
add helpers for fetching rlimits") or ACCESS_ONCE if not applicable.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/attr.c
fs/binfmt_aout.c
fs/binfmt_flat.c
fs/exec.c
fs/fcntl.c
fs/file.c
fs/proc/array.c
fs/select.c