-
- Downloads
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 3e10e716 ("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>
Showing
- fs/attr.c 1 addition, 1 deletionfs/attr.c
- fs/binfmt_aout.c 1 addition, 1 deletionfs/binfmt_aout.c
- fs/binfmt_flat.c 1 addition, 1 deletionfs/binfmt_flat.c
- fs/exec.c 4 additions, 4 deletionsfs/exec.c
- fs/fcntl.c 1 addition, 1 deletionfs/fcntl.c
- fs/file.c 1 addition, 1 deletionfs/file.c
- fs/proc/array.c 2 additions, 2 deletionsfs/proc/array.c
- fs/select.c 1 addition, 1 deletionfs/select.c
Loading
Please register or sign in to comment