]> git.baikalelectronics.ru Git - kernel.git/commit
Increase size of ucounts to atomic_long_t
authorAlexey Gladkov <legion@kernel.org>
Thu, 22 Apr 2021 12:27:08 +0000 (14:27 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 30 Apr 2021 19:14:00 +0000 (14:14 -0500)
commitd8cda71fa9a0eca074e298d0e6a354d71702b1cc
treedc997760082f277fea8b2cb0b4c6a3f6048fb806
parentceee1e19c1aedef1955a6a95fba1ca50ba68a447
Increase size of ucounts to atomic_long_t

RLIMIT_MSGQUEUE and RLIMIT_MEMLOCK use unsigned long to store their
counters. As a preparation for moving rlimits based on ucounts, we need
to increase the size of the variable to long.

Signed-off-by: Alexey Gladkov <legion@kernel.org>
Link: https://lkml.kernel.org/r/257aa5fb1a7d81cf0f4c34f39ada2320c4284771.1619094428.git.legion@kernel.org
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
include/linux/user_namespace.h
kernel/ucount.c