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: NTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录