aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.h
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2010-10-25 03:12:50 -0400
committerLi Zefan <lizf@cn.fujitsu.com>2010-12-22 10:15:48 -0500
commit1a419d85a76853d7d04e9b6280a80e96770bf3e3 (patch)
tree01535c5571208561af5d475eaa151e1c2f936f57 /fs/btrfs/ioctl.h
parenta6fa6fae40ec336c7df6155255ae64ebef43a8bc (diff)
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>
Diffstat (limited to 'fs/btrfs/ioctl.h')
-rw-r--r--fs/btrfs/ioctl.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.h b/fs/btrfs/ioctl.h
index c344d12c646b..24d0f4628240 100644
--- a/fs/btrfs/ioctl.h
+++ b/fs/btrfs/ioctl.h
@@ -133,8 +133,15 @@ struct btrfs_ioctl_defrag_range_args {
133 */ 133 */
134 __u32 extent_thresh; 134 __u32 extent_thresh;
135 135
136 /*
137 * which compression method to use if turning on compression
138 * for this defrag operation. If unspecified, zlib will
139 * be used
140 */
141 __u32 compress_type;
142
136 /* spare for later */ 143 /* spare for later */
137 __u32 unused[5]; 144 __u32 unused[4];
138}; 145};
139 146
140struct btrfs_ioctl_space_info { 147struct btrfs_ioctl_space_info {