tomoyo: use hwight16() in tomoyo_domain_quota_is_ok()
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Wed, 15 Dec 2021 11:13:55 +0000 (20:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jan 2022 11:40:29 +0000 (12:40 +0100)
commit0643d9175dc68608a7bfd470808e8590e9ef2623
tree71531ec262c1594d1849cfaba07e7de29b2722aa
parente2048a1f91869d0226a0bfc867ecc40fc5897107
tomoyo: use hwight16() in tomoyo_domain_quota_is_ok()

[ Upstream commit f702e1107601230eec707739038a89018ea3468d ]

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: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/tomoyo/util.c