]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: run chunk allocations while we do delayed refs
authorChris Mason <chris.mason@oracle.com>
Fri, 6 Jan 2012 20:23:57 +0000 (15:23 -0500)
committerGuru Anbalagane <guru.anbalagane@oracle.com>
Fri, 27 Jan 2012 01:20:23 +0000 (17:20 -0800)
commita1159704f9b9a87a3fa2d87793cfb0f0b7917e94
treec0ffce32570acdf8594f340f9a46057f25201679
parente97947d8f8164080c3c40df97089c78f24329cba
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>
(cherry picked from commit 203bf287cb01a5dc26c20bd3737cecf3aeba1d48)
fs/btrfs/extent-tree.c
fs/btrfs/transaction.c