[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aAXXDs1t_WUekH0y@infradead.org>
Date: Sun, 20 Apr 2025 22:26:38 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Yu Kuai <yukuai1@...weicloud.com>
Cc: axboe@...nel.dk, kbusch@...nel.org, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, yukuai3@...wei.com,
yi.zhang@...wei.com, yangerkun@...wei.com, johnny.chenyi@...wei.com
Subject: Re: [PATCH 4/5] brd: fix discard end sector
On Fri, Apr 18, 2025 at 05:38:25PM +0800, Yu Kuai wrote:
> + sector_t aligned_end = round_down(sector + (size >> SECTOR_SHIFT),
> + PAGE_SECTORS);
Nit: I think the version below would be a bit more readable:
sector_t aligned_end =
round_down(sector + (size >> SECTOR_SHIFT), PAGE_SECTORS);
otherwise look good:
Reviewed-by: Christoph Hellwig <hch@....de>
Powered by blists - more mailing lists