Thread (76 messages) 76 messages, 15 authors, 2021-10-14

Re: [PATCH 04/29] md: use bdev_nr_sectors instead of open coding it

From: Song Liu <song@kernel.org>
Date: 2021-10-13 21:14:48
Also in: dm-devel, linux-bcache, linux-block, linux-btrfs, linux-fsdevel, linux-nfs, linux-nvme, linux-raid, linux-scsi, ntfs3, target-devel

On Tue, Oct 12, 2021 at 11:12 PM Kees Cook [off-list ref] wrote:
On Wed, Oct 13, 2021 at 07:10:17AM +0200, Christoph Hellwig wrote:
quoted
Use the proper helper to read the block device size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
I think it might make sense, as you suggest earlier, to add a "bytes"
helper. This is the first user in the series needing:

        bdev_nr_sectors(...bdev) << SECTOR_SHIFT

Reviewed-by: Kees Cook <redacted>
Acked-by: Song Liu <song@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help