diff options
author | Javier González <javier@javigon.com> | 2016-01-12 09:49:31 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-01-12 18:21:17 +0300 |
commit | d7a64d275b39e19c010cdfd8728cc64f14b59bda (patch) | |
tree | bece6f5ed3f8c70b3e1114d8d01d58ac913dba34 /drivers/lightnvm/rrpc.h | |
parent | 09719b62fdab031e39b39a6470364a372abdf3f4 (diff) | |
download | linux-d7a64d275b39e19c010cdfd8728cc64f14b59bda.tar.xz |
lightnvm: reference rrpc lun in rrpc block
Currently, a rrpc block only points to its nvm_lun. If a user wants to
find the associated rrpc lun, it will have to calculate the index and
look it up manually. By referencing the rrpc lun directly, this step can
be omitted, at the cost of a larger memory footprint.
This is important for upcoming patches that implement write buffering in
rrpc.
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/lightnvm/rrpc.h')
-rw-r--r-- | drivers/lightnvm/rrpc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/lightnvm/rrpc.h b/drivers/lightnvm/rrpc.h index a9696a06c38c..7c5fa4dd9722 100644 --- a/drivers/lightnvm/rrpc.h +++ b/drivers/lightnvm/rrpc.h @@ -54,6 +54,7 @@ struct rrpc_rq { struct rrpc_block { struct nvm_block *parent; + struct rrpc_lun *rlun; struct list_head prio; #define MAX_INVALID_PAGES_STORAGE 8 |