Skip to content
Commit 6702ed49 authored by Chris Mason's avatar Chris Mason Committed by David Woodhouse
Browse files

Btrfs: Add run time btree defrag, and an ioctl to force btree defrag



This adds two types of btree defrag, a run time form that tries to
defrag recently allocated blocks in the btree when they are still in ram,
and an ioctl that forces defrag of all btree blocks.

File data blocks are not defragged yet, but this can make a huge difference
in sequential btree reads.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 3c69faec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment