mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-15 11:44:11 +00:00
writeback: fix call of incorrect macro
[ Upstream commit3e46c89c74
] 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:2a81490811
("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>
This commit is contained in:
parent
81d5bef922
commit
00536c6d21
1 changed files with 1 additions and 1 deletions
|
@ -825,7 +825,7 @@ void wbc_detach_inode(struct writeback_control *wbc)
|
|||
* is okay. The main goal is avoiding keeping an inode on
|
||||
* the wrong wb for an extended period of time.
|
||||
*/
|
||||
if (hweight32(history) > WB_FRN_HIST_THR_SLOTS)
|
||||
if (hweight16(history) > WB_FRN_HIST_THR_SLOTS)
|
||||
inode_switch_wbs(inode, max_id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue