]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kernel/acct.c: use dedicated helper to access rlimit values
authorYang Yang <yang.yang29@zte.com.cn>
Mon, 23 Aug 2021 23:59:53 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:44 +0000 (09:34 +1000)
commit3693e9621222298ace0461c5078b178ef385cde5
tree18623501dcf4b29e06f0c6388e9e406e7334c75d
parent4c7ed330e62fc107fa2a01020f19c2012baacf1b
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: Stephen Rothwell <sfr@canb.auug.org.au>
kernel/acct.c