summaryrefslogtreecommitdiffstats
path: root/drivers/lightnvm/pblk-sysfs.c
diff options
context:
space:
mode:
authorJavier González <javier@cnexlabs.com>2018-03-30 00:05:15 +0200
committerJens Axboe <axboe@kernel.dk>2018-03-29 17:29:09 -0600
commit694715137482b10d5be83b1dadf9a3cdee2ce1bc (patch)
treef634868afa100e6d06bc4fea2f56867aff88b3a2 /drivers/lightnvm/pblk-sysfs.c
parenta40afad90b9a253b282183eb9365f1cc14aeff77 (diff)
downloadlinux-694715137482b10d5be83b1dadf9a3cdee2ce1bc.tar.gz
linux-694715137482b10d5be83b1dadf9a3cdee2ce1bc.tar.bz2
linux-694715137482b10d5be83b1dadf9a3cdee2ce1bc.zip
lightnvm: add support for 2.0 address format
Add support for 2.0 address format. Also, align address bits for 1.2 and 2.0 to be able to operate on channel and luns without requiring a format conversion. Use a generic address format for this purpose. Also, convert the generic operations to the generic format in pblk. 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-sysfs.c')
-rw-r--r--drivers/lightnvm/pblk-sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lightnvm/pblk-sysfs.c b/drivers/lightnvm/pblk-sysfs.c
index 3e9364f60b44..2489ea0edfa0 100644
--- a/drivers/lightnvm/pblk-sysfs.c
+++ b/drivers/lightnvm/pblk-sysfs.c
@@ -39,8 +39,8 @@ static ssize_t pblk_sysfs_luns_show(struct pblk *pblk, char *page)
sz += snprintf(page + sz, PAGE_SIZE - sz,
"pblk: pos:%d, ch:%d, lun:%d - %d\n",
i,
- rlun->bppa.g.ch,
- rlun->bppa.g.lun,
+ rlun->bppa.a.ch,
+ rlun->bppa.a.lun,
active);
}