Searched hist:f1591a8bb3e02713f4ee2efe20df0d84ed80da48 (Results 1 – 1 of 1) sorted by relevance
/linux/lib/ |
H A D | sbitmap.c | diff f1591a8bb3e02713f4ee2efe20df0d84ed80da48 Mon Jan 16 21:50:55 CET 2023 Kemeng Shi <shikemeng@huaweicloud.com> sbitmap: remove unnecessary calculation of alloc_hint in __sbitmap_get_shallow
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>
|