lightnvm: rename dma helper functions
Until now, the dma pool have been exclusively used to allocate the ppa list being sent to the device. In pblk (upcoming), we use these pools to allocate metadata too. Thus, we generalize the names of some variables on the dma helper functions to make the code more readable. Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:

committed by
Jens Axboe

parent
003fad376b
commit
75b8564932
@@ -565,10 +565,10 @@ static void *nvme_nvm_dev_dma_alloc(struct nvm_dev *dev, void *pool,
|
||||
return dma_pool_alloc(pool, mem_flags, dma_handler);
|
||||
}
|
||||
|
||||
static void nvme_nvm_dev_dma_free(void *pool, void *ppa_list,
|
||||
static void nvme_nvm_dev_dma_free(void *pool, void *addr,
|
||||
dma_addr_t dma_handler)
|
||||
{
|
||||
dma_pool_free(pool, ppa_list, dma_handler);
|
||||
dma_pool_free(pool, addr, dma_handler);
|
||||
}
|
||||
|
||||
static struct nvm_dev_ops nvme_nvm_dev_ops = {
|
||||
|
Reference in New Issue
Block a user