Skip to contentSkip to conversation

master - bcache: increase max allowed bcache size

PATCH David Teigland 1 participant 1 message Aug 16, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=61fce72a114d23b98bfd4a9d457e3d55297455ef
Commit:        61fce72a114d23b98bfd4a9d457e3d55297455ef
Parent:        987f2733c76cff60eaf71b01f33ec8126121d792
Author:        David Teigland <[email protected]>
AuthorDate:    Fri Aug 16 13:35:09 2019 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Fri Aug 16 13:35:09 2019 -0500

bcache: increase max allowed bcache size

from 128MB to 512MB (the default remains 8MB)

---
 lib/label/label.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
lib/label/label.c +2 -2
index 3c8e10c..e786c89 100644
@@ -808,8 +808,8 @@ out:
  * the metadata size.)
  */
 
-#define MIN_BCACHE_BLOCKS 32    /* 4MB */
-#define MAX_BCACHE_BLOCKS 1024
+#define MIN_BCACHE_BLOCKS 32    /* 4MB (32 * 128KB) */
+#define MAX_BCACHE_BLOCKS 4096  /* 512MB (4096 * 128KB) */
 
 static int _setup_bcache(void)
 {