[PATCH v1 2/2] Allow developer to manually set a max block size
Kelvin Zhang
zhangkelvin at google.com
Wed May 31 06:24:13 AEST 2023
Signed-off-by: Kelvin Zhang <zhangkelvin at google.com>
---
include/erofs/internal.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/erofs/internal.h b/include/erofs/internal.h
index b3d04be..6eba35d 100644
--- a/include/erofs/internal.h
+++ b/include/erofs/internal.h
@@ -35,7 +35,9 @@ typedef unsigned short umode_t;
#define PAGE_SIZE (1U << PAGE_SHIFT)
#endif
+#ifndef EROFS_MAX_BLOCK_SIZE
#define EROFS_MAX_BLOCK_SIZE PAGE_SIZE
+#endif
#define EROFS_ISLOTBITS 5
#define EROFS_SLOTSIZE (1U << EROFS_ISLOTBITS)
--
2.41.0.rc0.172.g3f132b7071-goog
More information about the Linux-erofs
mailing list