summaryrefslogtreecommitdiffstats
path: root/drivers/lightnvm/rrpc.c
Commit message (Collapse)AuthorAgeFilesLines
* block: change ->make_request_fn() and users to return a queue cookieJens Axboe2015-11-071-4/+5
| | | | | | | | | No functional changes in this patch, but it prepares us for returning a more useful cookie related to the IO that was queued up. Signed-off-by: Jens Axboe <axboe@fb.com> Acked-by: Christoph Hellwig <hch@lst.de> Acked-by: Keith Busch <keith.busch@intel.com>
* lightnvm: refactor phys addrs type to u64Matias Bjørling2015-11-031-9/+8
| | | | | | | | | | For cases where CONFIG_LBDAF is not set. The struct ppa_addr exceeds its type on 32 bit architectures. ppa_addr requires a 64bit integer to hold the generic ppa format. We therefore refactor it to u64 and replaces the sector_t usages with u64 for physical addresses. Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
* rrpc: Round-robin sector target with cost-based gcMatias Bjørling2015-10-291-0/+1324
This target allows an Open-Channel SSD to be exposed asas a block device. It implements a round-robin approach for sector allocation, together with a greedy cost-based garbage collector. Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
OpenPOWER on IntegriCloud