ext4: introduce ext4_trunc_inode to deal with ftruncate operation
[lwext4.git] / lwext4 / ext4_config.h
index 1b25106796658a82030fbf805f409094a4ab6a40..17da6bb68116a6ffbd77c58a02842f8b0b3ce989 100644 (file)
@@ -138,6 +138,12 @@ extern "C" {
 #define CONFIG_EXTENT_FULL 1
 #endif
 
+/**@brief Maximum single truncate size. Transactions must be limited to reduce
+ *        number of allocetions for single transaction*/
+#ifndef CONFIG_MAX_TRUNCATE_SIZE
+#define CONFIG_MAX_TRUNCATE_SIZE (16 * 1024 * 1024)
+#endif
+
 #ifdef __cplusplus
 }
 #endif