]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: refactor phys addrs type to u64
authorMatias Bjørling <m@bjorling.me>
Mon, 2 Nov 2015 16:12:27 +0000 (17:12 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 3 Nov 2015 16:53:24 +0000 (09:53 -0700)
commit254a65ecc6d1524efd05cc3e5b88a910d62e59c1
tree63907b30b02b8ca1cb6c6ea108114a696a6ffff2
parent76231fdd7232a719b421a56fce8f828a63a3bd57
lightnvm: refactor phys addrs type to u64

For cases where CONFIG_LBDAF is not set. The struct ppa_addr exceeds its
type on 32 bit architectures. ppa_addr requires a 64bit integer to hold
the generic ppa format. We therefore refactor it to u64 and
replaces the sector_t usages with u64 for physical addresses.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/rrpc.c
drivers/lightnvm/rrpc.h
include/linux/lightnvm.h