summaryrefslogtreecommitdiffstats
path: root/drivers/lightnvm/pblk-sysfs.c
diff options
context:
space:
mode:
authorJavier González <javier@cnexlabs.com>2018-03-30 00:05:19 +0200
committerJens Axboe <axboe@kernel.dk>2018-03-29 17:29:09 -0600
commitbb845ae45c3d669ee814ce9f0ed51f2915ee55a0 (patch)
tree6f556ac4b5ce1f63640bc8a1d045380ed6d81d77 /drivers/lightnvm/pblk-sysfs.c
parent7ad5039ee557f0a427a0768e43c28d0236d56ba3 (diff)
downloadlinux-stable-bb845ae45c3d669ee814ce9f0ed51f2915ee55a0.tar.gz
linux-stable-bb845ae45c3d669ee814ce9f0ed51f2915ee55a0.tar.bz2
linux-stable-bb845ae45c3d669ee814ce9f0ed51f2915ee55a0.zip
lightnvm: pblk: rename ppaf* to addrf*
In preparation for 2.0 support in pblk, rename variables referring to the address format to addrf and reserve ppaf for the 1.2 path. 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 2489ea0edfa0..fd2caad39d49 100644
--- a/drivers/lightnvm/pblk-sysfs.c
+++ b/drivers/lightnvm/pblk-sysfs.c
@@ -117,12 +117,12 @@ static ssize_t pblk_sysfs_ppaf(struct pblk *pblk, char *page)
struct nvm_addrf_12 *geo_ppaf;
ssize_t sz = 0;
- ppaf = (struct nvm_addrf_12 *)&pblk->ppaf;
+ ppaf = (struct nvm_addrf_12 *)&pblk->addrf;
geo_ppaf = (struct nvm_addrf_12 *)&geo->addrf;
sz = snprintf(page, PAGE_SIZE,
"g:(b:%d)blk:%d/%d,pg:%d/%d,lun:%d/%d,ch:%d/%d,pl:%d/%d,sec:%d/%d\n",
- pblk->ppaf_bitsize,
+ pblk->addrf_len,
ppaf->blk_offset, ppaf->blk_len,
ppaf->pg_offset, ppaf->pg_len,
ppaf->lun_offset, ppaf->lun_len,