Btrfs: add new defrag-range ioctl.
authorChris Mason <chris.mason@oracle.com>
Thu, 11 Mar 2010 14:42:04 +0000 (09:42 -0500)
committerChris Mason <chris.mason@oracle.com>
Mon, 15 Mar 2010 15:00:10 +0000 (11:00 -0400)
commit1e701a3292e25a6c4939cad9f24951dc6b6ad853
tree899887a99aae82fe113bffedccb90a76e5473f8b
parent940100a4a7b78b27e60a3e72340fb9b5397dcdb2
Btrfs: add new defrag-range ioctl.

The btrfs defrag ioctl was limited to doing the entire file.  This
commit adds a new interface that can defrag a specific range inside
the file.

It can also force compression on the file, allowing you to selectively
compress individual files after they were created, even when mount -o
compress isn't turned on.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/ioctl.h