Commit 3866dfa0 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Zheng Zengkai
Browse files

tomoyo: use hwight16() in tomoyo_domain_quota_is_ok()

stable inclusion
from stable-v5.10.90
commit 0643d9175dc68608a7bfd470808e8590e9ef2623
bugzilla: 186168 https://gitee.com/openeuler/kernel/issues/I4SHY1

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0643d9175dc68608a7bfd470808e8590e9ef2623



--------------------------------

[ Upstream commit f702e110 ]

hwight16() is much faster. While we are at it, no need to include
"perm =" part into data_race() macro, for perm is a local variable
that cannot be accessed by other threads.

Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 8153c9a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment