Thread (54 messages) 54 messages, 12 authors, 2022-05-23

Re: [PATCH v4 06/13] btrfs: zoned: Make sb_zone_number function non power of 2 compatible

From: Johannes Thumshirn <hidden>
Date: 2022-05-17 06:53:54
Also in: dm-devel, linux-btrfs, linux-fsdevel, linux-nvme, lkml

On 16/05/2022 18:54, Pankaj Raghav wrote:
 	/* Cache the sb zone number */
 	for (i = 0; i < BTRFS_SUPER_MIRROR_MAX; ++i) {
 		zone_info->sb_zone_location[i] =
-			sb_zone_number(zone_info->zone_size_shift, i);
+			sb_zone_number(bdev, i);
I think this easily fits on one line now, doesn't it? But given David's
statement, it'll probably can go away anyways.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help