Thread (8 messages) 8 messages, 2 authors, 2021-07-21

Re: [PATCH v2 2/3] btrfs: fix argument type of btrfs_bio_clone_partial()

From: Christoph Hellwig <hch@infradead.org>
Date: 2021-07-21 06:38:21
Also in: linux-btrfs

On Wed, Jul 21, 2021 at 03:26:59PM +0900, Naohiro Aota wrote:
 	btrfs_bio = btrfs_io_bio(bio);
 	btrfs_io_bio_init(btrfs_bio);
 
-	bio_trim(bio, offset >> 9, size >> 9);
+	bio_trim(bio, (sector_t)offset >> 9, (sector_t)size >> 9);
No need for the casts when shifting down.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help