aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-zoned-metadata.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-04-10 11:12:31 +0300
committerMike Snitzer <snitzer@redhat.com>2019-04-18 16:16:01 -0400
commita3839bc6351d79cf85790f302238dfc84382429f (patch)
tree65cf39b1254f03a78ed748209a939ab87d654f85 /drivers/md/dm-zoned-metadata.c
parentdm crypt: fix endianness annotations around org_sector_of_dmreq (diff)
downloadlinux-dev-a3839bc6351d79cf85790f302238dfc84382429f.tar.xz
linux-dev-a3839bc6351d79cf85790f302238dfc84382429f.zip
dm zoned: Silence a static checker warning
My static checker complains about this line from dmz_get_zoned_device() aligned_capacity = dev->capacity & ~(blk_queue_zone_sectors(q) - 1); The problem is that "aligned_capacity" and "dev->capacity" are sector_t type (which is a u64 under most configs) but blk_queue_zone_sectors(q) returns a u32 so the higher 32 bits in aligned_capacity are cleared to zero. This patch adds a cast to address the issue. Fixes: 114e025968b5 ("dm zoned: ignore last smaller runt zone") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions