summaryrefslogtreecommitdiff
path: root/lib/label/label.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/label/label.h')
-rw-r--r--lib/label/label.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/label/label.h b/lib/label/label.h
index f06b7df63..778f62517 100644
--- a/lib/label/label.h
+++ b/lib/label/label.h
@@ -119,6 +119,14 @@ int label_scan_open_excl(struct device *dev);
int label_scan_open_rw(struct device *dev);
/*
+ * These are the sizes the label.c uses to set up
+ * and use bcache (they are not bcache restrictions
+ * or defs.)
+ */
+#define BCACHE_BLOCK_SIZE_IN_SECTORS 256 /* 256*512 = 128K */
+#define BCACHE_BLOCK_SIZE_IN_BYTES 131072
+
+/*
* Wrappers around bcache equivalents.
* (these make it easier to disable bcache and revert to direct rw if needed)
*/