Btrfs: Add shared reference cache
authorZheng Yan <zheng.yan@oracle.com>
Fri, 26 Sep 2008 14:04:53 +0000 (10:04 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 26 Sep 2008 14:04:53 +0000 (10:04 -0400)
commite465768938f95388723b0fd3c50a0ae48173edb9
tree0f624a9a98dedfafae902e12b384d27e1100cd3a
parente8569813849b5da394a195c7e76b4faa452b12d1
Btrfs: Add shared reference cache

Btrfs has a cache of reference counts in leaves, allowing it to
avoid reading tree leaves while deleting snapshots.  To reduce
contention with multiple subvolumes, this cache is private to each
subvolume.

This patch adds shared reference cache support. The new space
balancing code plays with multiple subvols at the same time, So
the old per-subvol reference cache is not well suited.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/ref-cache.c
fs/btrfs/ref-cache.h
fs/btrfs/transaction.c