]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
lightnvm: expose gennvm_mark_blk to targets
authorMatias Bjørling <m@bjorling.me>
Fri, 6 May 2016 18:03:18 +0000 (20:03 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 6 May 2016 18:51:10 +0000 (12:51 -0600)
commit04a8aa173bd9410849526a80dcf733da9c3e142d
treeb7f5761b2ac80e594eb191ebb1faf9fb6a9f64d3
parent976bdfcae32ea10c2c8c2ecaeb0d85873f634dad
lightnvm: expose gennvm_mark_blk to targets

Targets can update a block state when having a reference to an
in-memory virtual block. In the case that a target does not keep the
block metadata in memory, it does not have a way to update this
structure.

Therefore, expose gennvm_mark_blk() through the media managers
->mark_blk() callback and let targets update the state structure through
this callback.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/gennvm.c
include/linux/lightnvm.h