diff options
author | Yan, Zheng <zheng.yan@oracle.com> | 2010-05-16 10:46:25 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-05-25 10:34:50 -0400 |
commit | f0486c68e4bd9a06a5904d3eeb3a0d73a83befb8 (patch) | |
tree | 509428ef400ef45e875a3c448b63b86cbea36aea /crypto | |
parent | 2ead6ae770d9f9dec9f4286bf0fd9001b4388c4b (diff) | |
download | kernel_goldelico_gta04-f0486c68e4bd9a06a5904d3eeb3a0d73a83befb8.zip kernel_goldelico_gta04-f0486c68e4bd9a06a5904d3eeb3a0d73a83befb8.tar.gz kernel_goldelico_gta04-f0486c68e4bd9a06a5904d3eeb3a0d73a83befb8.tar.bz2 |
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 <chris.mason@oracle.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions