Re: [PATCH 02/30] block: add a bdev_nr_bytes helper

From
Matthew Wilcox <willy@infradead.org>
Date
2021-10-15 13:39:05
Also in
dm-devel, linux-bcache, linux-block, linux-btrfs, linux-fsdevel, linux-nfs, linux-nvme, linux-raid, linux-scsi, ntfs3, target-devel
Reply to
Christoph Hellwig, 2021-10-15
On Fri, Oct 15, 2021 at 03:26:15PM +0200, Christoph Hellwig wrote:
quoted hunk ↗ jump to hunk
+static inline sector_t bdev_nr_bytes(struct block_device *bdev)
+{
+	return i_size_read(bdev->bd_inode);
Uh.  loff_t, surely?
Thread (63 messages) 63 messages, 11 authors, last reply 2021-10-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help