Thread (104 messages) 104 messages, 9 authors, 2024-06-17

Re: [PATCH 06/26] loop: also use the default block size from an underlying block device

From: Christoph Hellwig <hch@lst.de>
Date: 2024-06-11 05:59:50
Also in: ceph-devel, dm-devel, linux-bcache, linux-block, linux-m68k, linux-mmc, linux-nvme, linux-s390, linux-scsi, linux-um, linuxppc-dev, nvdimm, virtualization, xen-devel

On Tue, Jun 11, 2024 at 02:58:56PM +0900, Damien Le Moal wrote:
quoted
+	if (S_ISBLK(inode->i_mode))
+		backing_bdev = I_BDEV(inode);
+	else if (inode->i_sb->s_bdev)
+		backing_bdev = inode->i_sb->s_bdev;
+
Why not move this hunk inside the below "if" ? (backing_dev declaration can go
there too).
Because another use will pop up a bit later :)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help