btrfs-progs: zoned: use fixed width type when reading zone size

The ioctl BLKGETZONESZ expects 32bit integer, declare the target
variable as such.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2021-06-24 21:49:46 +02:00
parent 4d86d928c1
commit 1dc6f33c28

View File

@ -471,7 +471,7 @@ size_t btrfs_sb_io(int fd, void *buf, off_t offset, int rw)
const u64 sb_size_sector = (BTRFS_SUPER_INFO_SIZE >> SECTOR_SHIFT);
u64 mapped = U64_MAX;
u32 zone_num;
unsigned int zone_size_sector;
u32 zone_size_sector;
size_t rep_size;
int mirror = -1;
int i;