]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
lightnvm: add is_cached entry to struct ppa_addr
authorMatias Bjørling <m@bjorling.me>
Fri, 6 May 2016 18:03:19 +0000 (20:03 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 6 May 2016 18:51:10 +0000 (12:51 -0600)
commitdf414b33bb1eb3a0ae52ccd4ecfec9323a4f89dc
tree9fa28d0008a66a5a82b485f196e44394f8ddc46c
parent04a8aa173bd9410849526a80dcf733da9c3e142d
lightnvm: add is_cached entry to struct ppa_addr

A target requires a method to identify PPAs that are either cached in
memory or on disk. This can efficiently be maintained within the PPA.
The target host-side translation table can then lookup a PPA and know
from the PPA if it is cached or on disk. In the case it is cached, it is
the responsibility of the target to maintain this cache.

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