From: Hannes Reinecke <hare@suse.de>
To: Mike Snitzer <snitzer@redhat.com>
Cc: Hannes@suse.de, Damien LeMoal <damien.lemoal@wdc.com>,
dm-devel@redhat.com
Subject: [PATCH] dm-zoned: remove leftover hunk for switching to sequential zones
Date: Fri, 22 May 2020 09:32:09 +0200 [thread overview]
Message-ID: <20200522073209.78681-1-hare@suse.de> (raw)
Remove a leftover hunk to switch from sequential zones to random
zones when selecting a reclaim zone; the logic has moved into the
caller and this patch is now pointless.
Fixes: 34f5affd04c4 ("dm zoned: separate random and cache zones")
Signed-off-by: Hannes Reinecke <hare@suse.de.
---
drivers/md/dm-zoned-metadata.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/md/dm-zoned-metadata.c b/drivers/md/dm-zoned-metadata.c
index db0dc2b5d44d..4a2e351365c5 100644
--- a/drivers/md/dm-zoned-metadata.c
+++ b/drivers/md/dm-zoned-metadata.c
@@ -2111,14 +2111,6 @@ struct dm_zone *dmz_alloc_zone(struct dmz_metadata *zmd, unsigned long flags)
*/
if (!(flags & DMZ_ALLOC_RECLAIM))
return NULL;
- /*
- * Use sequential write zones if we started off with random
- * zones and the list is empty
- */
- if (list == &zmd->unmap_rnd_list) {
- list = &zmd->unmap_seq_list;
- goto again;
- }
/*
* Fallback to the reserved sequential zones
*/
--
2.25.0
next reply other threads:[~2020-05-22 7:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-22 7:32 Hannes Reinecke [this message]
2020-05-22 7:45 ` [PATCH] dm-zoned: remove leftover hunk for switching to sequential zones Damien Le Moal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200522073209.78681-1-hare@suse.de \
--to=hare@suse.de \
--cc=Hannes@suse.de \
--cc=damien.lemoal@wdc.com \
--cc=dm-devel@redhat.com \
--cc=snitzer@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.