diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index d3a534f..d10d43e 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -2446,7 +2446,7 @@ do {                                                              \
  * counters. So we need to make sure we have free clusters more
  * than percpu_counter_batch  * nr_cpu_ids. Also add a window of 4 times.
  */
-#define EXT4_FREECLUSTERS_WATERMARK (4 * (percpu_counter_batch * nr_cpu_ids))
+#define EXT4_FREECLUSTERS_WATERMARK (4 * (percpu_counter_batch * min(nr_cpu_ids, 128)))
 #else
 #define EXT4_FREECLUSTERS_WATERMARK 0
 #endif

