diff options
author | Bob Liu <bob.liu@oracle.com> | 2020-03-24 21:22:45 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-17 10:50:23 +0200 |
commit | fddfa591da8e0829ab7ebde8f8efb9b87f01f14a (patch) | |
tree | d888195e27e67ac2226678f0396ece6761d7142d /drivers/md/dm-clone-target.c | |
parent | 1ba26c2aedb4f3a3f84fb7c481a329cb56677243 (diff) |
dm zoned: remove duplicate nr_rnd_zones increase in dmz_init_zone()
[ Upstream commit b8fdd090376a7a46d17db316638fe54b965c2fb0 ]
zmd->nr_rnd_zones was increased twice by mistake. The other place it
is increased in dmz_init_zone() is the only one needed:
1131 zmd->nr_useable_zones++;
1132 if (dmz_is_rnd(zone)) {
1133 zmd->nr_rnd_zones++;
^^^
Fixes: 3b1a94c88b79 ("dm zoned: drive-managed zoned block device target")
Cc: stable@vger.kernel.org
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/md/dm-clone-target.c')
0 files changed, 0 insertions, 0 deletions