]> 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)
commit61133cb3d7e68af8fe0457ec3c8d33a67ba6cd74
treedc997760082f277fea8b2cb0b4c6a3f6048fb806
parent0efbc779a2d5e8b3dff33fc281510a13f9fa1166
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