aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-05-24 15:35:30 -0400
committerChris Mason <chris.mason@oracle.com>2011-05-26 17:52:15 -0400
commit4cb5300bc839b8a943eb19c9f27f25470e22d0ca (patch)
treeac0f2fb481c7aa6af08a624d276fa6d580c94c9b /fs/btrfs/ioctl.h
parentd6c0cb379c5198487e4ac124728cbb2346d63b1f (diff)
Btrfs: add mount -o auto_defrag
This will detect small random writes into files and queue the up for an auto defrag process. It isn't well suited to database workloads yet, but works for smaller files such as rpm, sqlite or bdb databases. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ioctl.h')
-rw-r--r--fs/btrfs/ioctl.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/fs/btrfs/ioctl.h b/fs/btrfs/ioctl.h
index e5e0ee2cad4e..ad1ea789fcb4 100644
--- a/fs/btrfs/ioctl.h
+++ b/fs/btrfs/ioctl.h
@@ -181,37 +181,6 @@ struct btrfs_ioctl_clone_range_args {
181#define BTRFS_DEFRAG_RANGE_COMPRESS 1 181#define BTRFS_DEFRAG_RANGE_COMPRESS 1
182#define BTRFS_DEFRAG_RANGE_START_IO 2 182#define BTRFS_DEFRAG_RANGE_START_IO 2
183 183
184struct btrfs_ioctl_defrag_range_args {
185 /* start of the defrag operation */
186 __u64 start;
187
188 /* number of bytes to defrag, use (u64)-1 to say all */
189 __u64 len;
190
191 /*
192 * flags for the operation, which can include turning
193 * on compression for this one defrag
194 */
195 __u64 flags;
196
197 /*
198 * any extent bigger than this will be considered
199 * already defragged. Use 0 to take the kernel default
200 * Use 1 to say every single extent must be rewritten
201 */
202 __u32 extent_thresh;
203
204 /*
205 * which compression method to use if turning on compression
206 * for this defrag operation. If unspecified, zlib will
207 * be used
208 */
209 __u32 compress_type;
210
211 /* spare for later */
212 __u32 unused[4];
213};
214
215struct btrfs_ioctl_space_info { 184struct btrfs_ioctl_space_info {
216 __u64 flags; 185 __u64 flags;
217 __u64 total_bytes; 186 __u64 total_bytes;