]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Metadata ENOSPC handling for balance
authorYan, Zheng <zheng.yan@oracle.com>
Sun, 16 May 2010 14:49:59 +0000 (10:49 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 25 May 2010 14:34:54 +0000 (10:34 -0400)
commitf38b76d2c860fc3571ac10d8ef9ef68ee10b11c4
tree3e7ff9bd9678a5eea62818a2f4a50e19dda91a81
parente58e46395afc4ea02c9829f66c6862b028db8fe5
Btrfs: Metadata ENOSPC handling for balance

This patch adds metadata ENOSPC handling for the balance code.
It is consisted by following major changes:

1. Avoid COW tree leave in the phrase of merging tree.

2. Handle interaction with snapshot creation.

3. make the backref cache can live across transactions.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/relocation.c
fs/btrfs/transaction.c