UBIFS: slight compression optimization
[linux-2.6-block.git] / fs / ubifs / ubifs-media.h
index 0b378042a3a28dd18737f6211e29dafbe7c5410b..b25fc36cf72f1fa70889dc3749f892e604673e75 100644 (file)
  */
 #define UBIFS_MIN_COMPR_LEN 128
 
+/*
+ * If compressed data length is less than %UBIFS_MIN_COMPRESS_DIFF bytes
+ * shorter than uncompressed data length, UBIFS preferes to leave this data
+ * node uncompress, because it'll be read faster.
+ */
+#define UBIFS_MIN_COMPRESS_DIFF 64
+
 /* Root inode number */
 #define UBIFS_ROOT_INO 1