[PATCH] lightnvm: introduce ADDR_PADDED to signal padding

From: Javier GonzÃlez
Date: Tue Apr 26 2016 - 10:35:35 EST


When REQ_FUA or REQ_FLUSH are sent from the block layer, a target might
need to pad some sectors in order to meet device constrains. ADDR_PADDED
allows to signal that such sector has been padded. It can be used to
mark both lbas and ppas.

Signed-off-by: Javier GonzÃlez <javier@xxxxxxxxxxxx>
---
include/linux/lightnvm.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index 37cda94..5c48207 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -214,6 +214,7 @@ struct nvm_tgt_instance {
};

#define ADDR_EMPTY (~0ULL)
+#define ADDR_PADDED (~0ULL - 1)

#define NVM_VERSION_MAJOR 1
#define NVM_VERSION_MINOR 0
--
2.5.0