]> git.baikalelectronics.ru Git - kernel.git/commit
writeback: fix call of incorrect macro
authorMaxim Korotkov <korotkov.maxim.s@gmail.com>
Thu, 19 Jan 2023 10:44:43 +0000 (13:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:33 +0000 (11:53 +0200)
commit7377941552006db81b2720735bd677e9b6d0e0dc
tree9ac055c3d287e8d7a1f4f8bfd599ee6d0d8b6bee
parent1bbe4419092969fc1a12666b7e9069d13642ab85
writeback: fix call of incorrect macro

[ Upstream commit 3e46c89c74f2c38e5337d2cf44b0b551adff1cb4 ]

 the variable 'history' is of type u16, it may be an error
 that the hweight32 macro was used for it
 I guess macro hweight16 should be used

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 7d637460c7c2 ("writeback: implement foreign cgroup inode detection")
Signed-off-by: Maxim Korotkov <korotkov.maxim.s@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230119104443.3002-1-korotkov.maxim.s@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/fs-writeback.c