diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-15 16:17:34 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:56 -0400 |
commit | 6b80053d02be41886344b5007d04e345311ec0b5 (patch) | |
tree | c935b3f2f4a582697167c52f57b0985137a95206 /fs/btrfs/transaction.c | |
parent | 09e71a326341f40111400c88aaf0498ef622824b (diff) |
Btrfs: Add back the online defragging code
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 60f61345a8d0..87456ab74275 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -355,7 +355,7 @@ int btrfs_defrag_root(struct btrfs_root *root, int cacheonly) | |||
355 | return 0; | 355 | return 0; |
356 | 356 | ||
357 | trans = btrfs_start_transaction(root, 1); | 357 | trans = btrfs_start_transaction(root, 1); |
358 | while (0) { | 358 | while (1) { |
359 | root->defrag_running = 1; | 359 | root->defrag_running = 1; |
360 | ret = btrfs_defrag_leaves(trans, root, cacheonly); | 360 | ret = btrfs_defrag_leaves(trans, root, cacheonly); |
361 | nr = trans->blocks_used; | 361 | nr = trans->blocks_used; |
@@ -400,7 +400,7 @@ int btrfs_defrag_dirty_roots(struct btrfs_fs_info *info) | |||
400 | btrfs_defrag_root(root, 1); | 400 | btrfs_defrag_root(root, 1); |
401 | } | 401 | } |
402 | } | 402 | } |
403 | // btrfs_defrag_root(info->extent_root, 1); | 403 | btrfs_defrag_root(info->extent_root, 1); |
404 | return err; | 404 | return err; |
405 | } | 405 | } |
406 | 406 | ||