summaryrefslogtreecommitdiffstats
path: root/Documentation/hwspinlock.txt
diff options
context:
space:
mode:
authorJavier González <javier@javigon.com>2018-10-09 13:12:09 +0200
committerJens Axboe <axboe@kernel.dk>2018-10-09 16:25:08 +0200
commit40b8657dcc0bbd4a293cac1acd4b0b01c0359416 (patch)
tree132bc7832c197a44c16c38a59441803027fad974 /Documentation/hwspinlock.txt
parentlightnvm: pblk: remove unused function (diff)
downloadlinux-40b8657dcc0bbd4a293cac1acd4b0b01c0359416.tar.xz
linux-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 <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <mb@lightnvm.io> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Documentation/hwspinlock.txt')
0 files changed, 0 insertions, 0 deletions