Commit bdbfcd5f authored by Daniel Gomez's avatar Daniel Gomez Committed by Keith Busch
Browse files

nvme: Increase block size variable size to 32-bit



Increase block size variable size to 32-bit unsigned to be able to
support block devices larger than 32k (starting from 64 KiB).

Physical and logical block size already support unsigned 32-bit.

Signed-off-by: default avatarDaniel Gomez <da.gomez@samsung.com>
Reviewed-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent e9227d48
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1835,7 +1835,7 @@ static void nvme_update_disk_info(struct gendisk *disk,
		struct nvme_ns *ns, struct nvme_id_ns *id)
{
	sector_t capacity = nvme_lba_to_sect(ns, le64_to_cpu(id->nsze));
	unsigned short bs = 1 << ns->lba_shift;
	u32 bs = 1U << ns->lba_shift;
	u32 atomic_bs, phys_bs, io_opt = 0;

	/*