]> 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:35:58 +0000 (11:35 +0200)
commit1d5b6aebdf9693a7e4a6383cc19846e7bec6a2ba
tree19bab08cca5ebe8a73bd4280c7bdce47e5a92630
parent17a6eadf6822305966e3cec8287442425893d736
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