Commit 5b814cde authored by Yu Kuai's avatar Yu Kuai Committed by Greg Kroah-Hartman
Browse files

brd: fix aligned_sector from brd_do_discard()



[ Upstream commit d4099f88 ]

The calculation is just wrong, fix it by round_up().

Fixes: 9ead7efc ("brd: implement discard support")
Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250506061756.2970934-3-yukuai1@huaweicloud.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7778a676
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment