Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e62c2de authored by Chris Mason's avatar Chris Mason
Browse files

Revert "Btrfs: increase the global block reserve estimates"



This reverts commit 5500cdbe.

We've had a number of complaints of early enospc that bisect down
to this patch.  We'll hae to fix the reservations differently.

CC: stable@kernel.org
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent bc3f116f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -4205,7 +4205,7 @@ static u64 calc_global_metadata_size(struct btrfs_fs_info *fs_info)
	num_bytes += div64_u64(data_used + meta_used, 50);
	num_bytes += div64_u64(data_used + meta_used, 50);


	if (num_bytes * 3 > meta_used)
	if (num_bytes * 3 > meta_used)
		num_bytes = div64_u64(meta_used, 3) * 2;
		num_bytes = div64_u64(meta_used, 3);


	return ALIGN(num_bytes, fs_info->extent_root->leafsize << 10);
	return ALIGN(num_bytes, fs_info->extent_root->leafsize << 10);
}
}