From 553c16b27c6daa266ce2618d718440bc04fbf1f3 Mon Sep 17 00:00:00 2001 From: Takeshi Yoshimura Date: Tue, 6 Aug 2019 10:04:38 +0900 Subject: [PATCH] lib/ftl: eliminate PAGE_SIZE Commit 6708b7 ("lib/ftl: fix the unclear PAGE_SIZE") removed PAGE_SIZE from lib/ftl, but one PAGE_SIZE remains. I follow the commit to change the PAGE_SIZE to FTL_BLOCK_SIZE and 4096 for alignment. This broke my ppc64le build, which PAGE_SIZE is not defined and should be taken with sysconf. Signed-off-by: Takeshi Yoshimura Change-Id: I9cabb5ffc4d41e094eae62439ab701579c87d014 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/464251 Reviewed-by: Changpeng Liu Reviewed-by: Ben Walker Tested-by: SPDK CI Jenkins --- lib/ftl/ftl_reloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ftl/ftl_reloc.c b/lib/ftl/ftl_reloc.c index 3dcf5a2e0..12c1ab40a 100644 --- a/lib/ftl/ftl_reloc.c +++ b/lib/ftl/ftl_reloc.c @@ -477,7 +477,7 @@ ftl_reloc_read(struct ftl_band_reloc *breloc, struct ftl_reloc_move *move) return 0; } - move->data = spdk_dma_malloc(PAGE_SIZE * move->lbk_cnt, PAGE_SIZE, NULL); + move->data = spdk_dma_malloc(FTL_BLOCK_SIZE * move->lbk_cnt, 4096, NULL); if (!move->data) { return -1; }