]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: add fpg_size and pfpg_size to struct nvm_dev
authorMatias Bjørling <m@bjorling.me>
Fri, 6 May 2016 18:02:57 +0000 (20:02 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 6 May 2016 18:51:10 +0000 (12:51 -0600)
commit926a1f139b89df4f183530109e0b18e0408a9fa8
treec5da30d99e92644a30cdf2d620dc56cbace69add
parentd5790e37a7b40a450f8fa554dee18592660c6e39
lightnvm: add fpg_size and pfpg_size to struct nvm_dev

The flash page size (fpg) and size across planes (pfpg) are convenient
to know when allocating buffer sizes. This has previously been a
calculated in various places. Replace with the pre-calculated values.

Reviewed by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c
drivers/lightnvm/sysblk.c
include/linux/lightnvm.h