diff options
author | Javier González <javier@javigon.com> | 2018-10-09 13:12:10 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-10-09 08:25:08 -0600 |
commit | 9bd1f875c047a8a619a3e5233c1eb23eace02f31 (patch) | |
tree | 8037785267158bf0eaa7d1fc7cd1596862ca69f4 /drivers/dma-buf/sync_debug.c | |
parent | 40b8657dcc0bbd4a293cac1acd4b0b01c0359416 (diff) | |
download | linux-9bd1f875c047a8a619a3e5233c1eb23eace02f31.tar.gz linux-9bd1f875c047a8a619a3e5233c1eb23eace02f31.tar.bz2 linux-9bd1f875c047a8a619a3e5233c1eb23eace02f31.zip |
lightnvm: pblk: move ring buffer alloc/free rb init
pblk's read/write buffer currently takes a buffer and its size and uses
it to create the metadata around it to use it as a ring buffer. This
puts the responsibility of allocating/freeing ring buffer memory on the
ring buffer user. Instead, move it inside of the ring buffer helpers
(pblk-rb.c). This simplifies creation/destruction routines.
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/dma-buf/sync_debug.c')
0 files changed, 0 insertions, 0 deletions