Btrfs: Add a leaf reference cache
authorYan Zheng <zheng.yan@oracle.com>
Mon, 28 Jul 2008 19:32:19 +0000 (15:32 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:05 +0000 (11:04 -0400)
commit31153d81284934601d08110ac7698fd9a535e4c0
tree38f873fea3012a58d2a8f4d439a9546443617878
parent3a115f520f391b4ab14041bdd6eedb370d944fa6
Btrfs: Add a leaf reference cache

Much of the IO done while dropping snapshots is done looking up
leaves in the filesystem trees to see if they point to any extents and
to drop the references on any extents found.

This creates a cache so that IO isn't required.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/Makefile
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/ref-cache.c [new file with mode: 0644]
fs/btrfs/ref-cache.h [new file with mode: 0644]
fs/btrfs/transaction.c