Btrfs: Add BH_Defrag to mark buffers that are in need of defragging
authorChris Mason <chris.mason@oracle.com>
Fri, 10 Aug 2007 18:42:37 +0000 (14:42 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Fri, 10 Aug 2007 18:42:37 +0000 (14:42 -0400)
commitf2183bde1a918d338337955c8e8ba29bd8f5e7b1
treee27baea3779112618d2158902270c460444feeff
parente9d0b13b5bbb58c9b840e407a8d181442f799966
Btrfs: Add BH_Defrag to mark buffers that are in need of defragging

This allows the tree walking code to defrag only the newly allocated
buffers, it seems to be a good balance between perfect defragging and the
performance hit of repeatedly reallocating blocks.

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