Merge branch 'patchwork' into topic/docs-next
[deliverable/linux.git] / fs / btrfs / free-space-cache.c
index 2813ef0718a28ce1716617702a2a15f1f7c1cac3..69d270f6602c2de22a734af3f848ad03bf767906 100644 (file)
@@ -1660,7 +1660,7 @@ static void recalculate_thresholds(struct btrfs_free_space_ctl *ctl)
         * sure we don't go over our overall goal of MAX_CACHE_BYTES_PER_GIG as
         * we add more bitmaps.
         */
-       bitmap_bytes = (ctl->total_bitmaps + 1) * PAGE_SIZE;
+       bitmap_bytes = (ctl->total_bitmaps + 1) * ctl->unit;
 
        if (bitmap_bytes >= max_bytes) {
                ctl->extents_thresh = 0;
This page took 0.023804 seconds and 5 git commands to generate.