btrfs: Allow to specify compress method when defrag
authorLi Zefan <lizf@cn.fujitsu.com>
Mon, 25 Oct 2010 07:12:50 +0000 (15:12 +0800)
committerLi Zefan <lizf@cn.fujitsu.com>
Wed, 22 Dec 2010 15:15:48 +0000 (23:15 +0800)
commit1a419d85a76853d7d04e9b6280a80e96770bf3e3
tree01535c5571208561af5d475eaa151e1c2f936f57
parenta6fa6fae40ec336c7df6155255ae64ebef43a8bc
btrfs: Allow to specify compress method when defrag

Update defrag ioctl, so one can choose lzo or zlib when turning
on compression in defrag operation.

Changelog:

v1 -> v2
- Add incompability flag.
- Fix to check invalid compress type.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
fs/btrfs/ioctl.c
fs/btrfs/ioctl.h