diff options
| author | Javier González <[email protected]> | 2018-10-09 11:12:09 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-10-09 14:25:08 +0000 |
| commit | 40b8657dcc0bbd4a293cac1acd4b0b01c0359416 (patch) | |
| tree | 132bc7832c197a44c16c38a59441803027fad974 /drivers/lightnvm/pblk-init.c | |
| parent | lightnvm: pblk: remove unused function (diff) | |
| download | kernel-40b8657dcc0bbd4a293cac1acd4b0b01c0359416.tar.gz kernel-40b8657dcc0bbd4a293cac1acd4b0b01c0359416.zip | |
lightnvm: pblk: encapsulate rb pointer operations
pblk's read/write buffer is always a power-of-2, thus wrapping up the
buffer can be done with a bit mask. Since this is an implementation
detail internal to the write buffer, make a helper that hides pointer
increment + wrap, and allows to transparently relax this assumption in
the future.
Signed-off-by: Javier González <[email protected]>
Signed-off-by: Matias Bjørling <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/lightnvm/pblk-init.c')
0 files changed, 0 insertions, 0 deletions
