Commit d51b3bfc authored by Mateusz Kozlowski's avatar Mateusz Kozlowski Committed by Konrad Sztyber
Browse files

lib/ftl: Reorder compaction finish read function calls



Add the same general ordering as for the FTL_LBA_INVALID case.

Change-Id: If31a6c0d0f76479467850b4bd9d15d4b9e9f9cde
Signed-off-by: default avatarMateusz Kozlowski <mateusz.kozlowski@solidigm.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24500


Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 1db6169c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1158,10 +1158,10 @@ compaction_process_finish_read(struct ftl_nv_cache_compactor *compactor)
			entry->seq_id = chunk->md->seq_id;
		} else {
			/* This address already invalidated, just omit this block */
			chunk_compaction_advance(chunk, 1);
			skip++;
			ftl_l2p_unpin(dev, lba, 1);
			compaction_process_invalidate_entry(entry);
			skip++;
			chunk_compaction_advance(chunk, 1);
		}
	}