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 <tyos@jp.ibm.com> Change-Id: I9cabb5ffc4d41e094eae62439ab701579c87d014 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/464251 Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
faf726cdd0
commit
553c16b27c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user