Btrfs: tune the chunk allocation to 5% of the FS as metadata
authorChris Mason <chris.mason@oracle.com>
Tue, 26 Oct 2010 17:37:56 +0000 (13:37 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 29 Oct 2010 15:25:35 +0000 (11:25 -0400)
commite5bc2458293b2af6c0b94435965c68cc70974b56
treed4b79f61f2ff236b080583345b4dfd617b0fca07
parent3259f8bed2f0f57c2fdcdac1b510c3fa319ef97e
Btrfs: tune the chunk allocation to 5% of the FS as metadata

An earlier commit tried to keep us from allocating too many
empty metadata chunks.  It was somewhat too restrictive and could
lead to ENOSPC errors on empty filesystems.

This increases the limits to about 5% of the FS size, allowing more
metadata chunks to be preallocated.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c