[PATCH] lightnvm: introduce ADDR_PADDED to signal padding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-block" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux