Files
linux-stable-mirror/lib
Kemeng ShiandGreg Kroah-Hartman fda080767c sbitmap: remove unnecessary calculation of alloc_hint in __sbitmap_get_shallow
[ Upstream commit f1591a8bb3 ]

Updates to alloc_hint in the loop in __sbitmap_get_shallow() are mostly
pointless and equivalent to setting alloc_hint to zero (because
SB_NR_TO_BIT() considers only low sb->shift bits from alloc_hint). So
simplify the logic.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Link: https://lore.kernel.org/r/20230116205059.3821738-2-shikemeng@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Stable-dep-of: 72d04bdcf3 ("sbitmap: fix io hung due to race on sbitmap_word::cleared")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:49:29 +02:00
..
2024-07-11 12:47:08 +02:00
2022-09-01 18:04:43 +02:00
2022-10-03 14:03:21 -07:00
2022-10-03 17:34:32 -07:00