diff options
author | 2018-12-11 20:16:25 +0100 | |
---|---|---|
committer | 2018-12-11 12:22:35 -0700 | |
commit | a16816b9e462e8ee86a908606bde54b53cfeca80 (patch) | |
tree | 3708bab87ed721388fec3e349f8e33b8fb26eb5b /include/linux/lightnvm.h | |
parent | lightnvm: dynamic DMA pool entry size (diff) | |
download | linux-a16816b9e462e8ee86a908606bde54b53cfeca80.tar.gz linux-a16816b9e462e8ee86a908606bde54b53cfeca80.tar.bz2 linux-a16816b9e462e8ee86a908606bde54b53cfeca80.zip |
lightnvm: disable interleaved metadata
Currently pblk only check the size of I/O metadata and does not take
into account if this metadata is in a separate buffer or interleaved
in a single metadata buffer.
In reality only the first scenario is supported, where second mode will
break pblk functionality during any IO operation.
This patch prevents pblk to be instantiated in case device only
supports interleaved metadata.
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Igor Konopko <igor.j.konopko@intel.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r-- | include/linux/lightnvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index 7afedaddbd15..5d865a5d5cdc 100644 --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h @@ -357,6 +357,7 @@ struct nvm_geo { u32 clba; /* sectors per chunk */ u16 csecs; /* sector size */ u16 sos; /* out-of-band area size */ + bool ext; /* metadata in extended data buffer */ /* device write constrains */ u32 ws_min; /* minimum write size */ |