commit | 203bf287cb01a5dc26c20bd3737cecf3aeba1d48 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Fri Jan 06 15:23:57 2012 -0500 |
committer | Chris Mason <chris.mason@oracle.com> | Fri Jan 06 15:23:57 2012 -0500 |
tree | f9ce9d7c82360bd6059b5ef16166cf79d16b1380 | |
parent | c1111b1fcee6359922ad8e5f6d72ed43815ad8f9 [diff] |
Btrfs: run chunk allocations while we do delayed refs Btrfs tries to batch extent allocation tree changes to improve performance and reduce metadata trashing. But it doesn't allocate new metadata chunks while it is doing allocations for the extent allocation tree. This commit changes the delayed refence code to do chunk allocations if we're getting low on room. It prevents crashes and improves performance. Signed-off-by: Chris Mason <chris.mason@oracle.com>