lkml.org 
[lkml]   [2018]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/4] lightnvm: use right address format on 1.2 path
Date
struct ppa_addr defines different address formats. When we are in the
1.2 path, use 1.2 addressing, even when the generic format works too.
This improves readability.

Signed-off-by: Javier González <javier@cnexlabs.com>
---
drivers/lightnvm/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c
index f7154398ba38..e9f14c67f4f3 100644
--- a/drivers/lightnvm/core.c
+++ b/drivers/lightnvm/core.c
@@ -998,8 +998,8 @@ static int nvm_get_bb_meta(struct nvm_dev *dev, sector_t slba,
goto done;

ppa_gen.ppa = 0;
- ppa_gen.a.ch = ch;
- ppa_gen.a.lun = lun;
+ ppa_gen.g.ch = ch;
+ ppa_gen.g.lun = lun;
ppa_dev = generic_to_dev_addr(dev, ppa_gen);

ret = dev->ops->get_bb_tbl(dev, ppa_dev, blks);
--
2.7.4
\
 
 \ /
  Last update: 2018-08-31 15:39    [W:0.096 / U:1.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site