1
0
Fork 0

dm zoned: remove leftover hunk for switching to sequential zones

Remove a leftover hunk to switch from random zones to sequential
zones when selecting a reclaim zone; the logic has moved into the
caller and this hunk is now pointless.

Fixes: 34f5affd04 ("dm zoned: separate random and cache zones")
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
alistair/sunxi64-5.8
Hannes Reinecke 2020-05-22 10:58:53 +02:00 committed by Mike Snitzer
parent a16b7dee30
commit b4756d43a1
1 changed files with 0 additions and 8 deletions

View File

@ -2111,14 +2111,6 @@ again:
*/
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
*/