summaryrefslogtreecommitdiff
path: root/drivers/lightnvm/pblk.h
diff options
context:
space:
mode:
authorJavier González <javier@javigon.com>2018-10-09 14:11:57 +0300
committerJens Axboe <axboe@kernel.dk>2018-10-09 17:25:07 +0300
commit63dee3a6c39a5bfa5f299ebb314f2e3e0273092b (patch)
treea27e58c5925b271de2fd70e09f4b75819cbd2c88 /drivers/lightnvm/pblk.h
parent7f985f9a691dc25ddcfc9dc7ff21199f5ee1569c (diff)
downloadlinux-63dee3a6c39a5bfa5f299ebb314f2e3e0273092b.tar.xz
lightnvm: pblk: calculate line pad distance in helper
If a line is padded, calculate the pad distance directly on the helper being used for this purpose. 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 'drivers/lightnvm/pblk.h')
-rw-r--r--drivers/lightnvm/pblk.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h
index a2cc581951ef..d123cff82589 100644
--- a/drivers/lightnvm/pblk.h
+++ b/drivers/lightnvm/pblk.h
@@ -986,14 +986,6 @@ static inline int pblk_line_vsc(struct pblk_line *line)
return le32_to_cpu(*line->vsc);
}
-static inline int pblk_pad_distance(struct pblk *pblk)
-{
- struct nvm_tgt_dev *dev = pblk->dev;
- struct nvm_geo *geo = &dev->geo;
-
- return geo->mw_cunits * geo->all_luns * geo->ws_opt;
-}
-
static inline int pblk_ppa_to_line_id(struct ppa_addr p)
{
return p.a.blk;