Btrfs: Defrag only leaves, and only when the parent node has a single objectid
authorChris Mason <chris.mason@oracle.com>
Mon, 15 Oct 2007 20:22:39 +0000 (16:22 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:57 +0000 (11:03 -0400)
commita6b6e75e096f436f0cc56edf5bca96301e194491
tree03751594c29a7d70d317689fd6b5e44ee023633e
parentff79f8190b6e955ff7a71faf804a3017d526e657
Btrfs: Defrag only leaves, and only when the parent node has a single objectid

This allows us to defrag huge directories, but skip the expensive defrag
case in more common usage, where it does not help as much.

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