]> git.baikalelectronics.ru Git - kernel.git/commit
mm: use dedicated helper to access rlimit value
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Mon, 10 Jul 2017 22:50:03 +0000 (15:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 10 Jul 2017 23:32:33 +0000 (16:32 -0700)
commit24c79d8e0a46bbd010ca9e0dc988a23981bcd423
tree230a57e526435203dba4593160e5a56b5126746d
parentb17c070fb624cf10162cf92ea5e1ec25cd8ac176
mm: use dedicated helper to access rlimit value

Use rlimit() helper instead of manually writing whole chain from current
task to rlim_cur.

Link: http://lkml.kernel.org/r/20170705172811.8027-1-k.opasiak@samsung.com
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c