From: Yan, Zheng Date: Sun, 16 May 2010 14:46:25 +0000 (-0400) Subject: Btrfs: Introduce contexts for metadata reservation X-Git-Tag: v2.6.35-rc1~36^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0486c68e4bd9a06a5904d3eeb3a0d73a83befb8;p=pandora-kernel.git Btrfs: Introduce contexts for metadata reservation Introducing metadata reseravtion contexts has two major advantages. First, it makes metadata reseravtion more traceable. Second, it can reclaim freed space and re-add them to the itself after transaction committed. Besides add btrfs_block_rsv structure and related helper functions, This patch contains following changes: Move code that decides if freed tree block should be pinned into btrfs_free_tree_block(). Make space accounting more accurate, mainly for handling read only block groups. Signed-off-by: Chris Mason --- Reading git-diff-tree failed