mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] lightnvm: introduce ADDR_PADDED to signal padding
@ 2016-04-26 14:35 Javier González
  2016-04-26 14:35 ` [PATCH 2/2] lightnvm: enable metadata to be sent to device Javier González
  2016-04-26 14:35 ` [PATCH 1/2] lightnvm: free metadata dma on rrpc when needed Javier González
  0 siblings, 2 replies; 3+ messages in thread
From: Javier González @ 2016-04-26 14:35 UTC (permalink / raw)
  To: mb; +Cc: linux-kernel, linux-block, Javier González

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@cnexlabs.com>
---
 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-26 14:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-26 14:35 [PATCH] lightnvm: introduce ADDR_PADDED to signal padding Javier González
2016-04-26 14:35 ` [PATCH 2/2] lightnvm: enable metadata to be sent to device Javier González
2016-04-26 14:35 ` [PATCH 1/2] lightnvm: free metadata dma on rrpc when needed Javier González

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®