lightnvm: introduce max_phys_sects helper function
authorJavier González <jg@lightnvm.io>
Mon, 28 Nov 2016 21:39:12 +0000 (22:39 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 29 Nov 2016 15:01:17 +0000 (08:01 -0700)
commit0df35ebcd2becc7a2df625048052ad8641287b3c
tree62ee298ab61bd4a06d35f6d303ddfc526032882b
parent2383f1ea2a6ea0cbee2dfb6b0c24266c2cafc2f7
lightnvm: introduce max_phys_sects helper function

Target devices do not have access to the device driver operations.
Introduce a helper function that exposes the max. number of physical
sectors supported by the underlying device.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c
include/linux/lightnvm.h