Skip to content

Commit ce31dc5

Browse files
morbidrsamartinkpetersen
authored andcommitted
scsi: sd: sd_zbc: Use PAGE_SECTORS_SHIFT
Use PAGE_SECTORS_SHIFT instead of open-coding it. Signed-off-by: Johannes Thumshirn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Niklas Cassel <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent e3d5562 commit ce31dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/sd_zbc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ int sd_zbc_revalidate_zones(struct scsi_disk *sdkp)
889889
}
890890

891891
max_append = min_t(u32, logical_to_sectors(sdkp->device, zone_blocks),
892-
q->limits.max_segments << (PAGE_SHIFT - 9));
892+
q->limits.max_segments << PAGE_SECTORS_SHIFT);
893893
max_append = min_t(u32, max_append, queue_max_hw_sectors(q));
894894

895895
blk_queue_max_zone_append_sectors(q, max_append);

0 commit comments

Comments
 (0)