]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/acct.c: use dedicated helper to access rlimit values
authorYang Yang <yang.yang29@zte.com.cn>
Wed, 8 Sep 2021 02:58:18 +0000 (19:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 8 Sep 2021 18:50:26 +0000 (11:50 -0700)
commit7b0c129bcf036fe45a3160c7618a1ca70ef513e5
tree8f510dcf5cca69de323726f264058f45159c94bd
parent537541e2f76d68ca70545b33771d3767b9b6e981
kernel/acct.c: use dedicated helper to access rlimit values

Use rlimit() helper instead of manually writing whole chain from
task to rlimit value. See patch "posix-cpu-timers: Use dedicated
helper to access rlimit values".

Link: https://lkml.kernel.org/r/20210728030822.524789-1-yang.yang29@zte.com.cn
Signed-off-by: Yang Yang <yang.yang29@zte.com.cn>
Reported-by: Zeal Robot <zealci@zte.com.cn>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: sh_def@163.com <sh_def@163.com>
Cc: Yang Yang <yang.yang29@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/acct.c