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/extent-tree.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/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 1be8f9f04a13..0b0c947194ae 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -1173,13 +1173,7 @@ struct extent_buffer *btrfs_alloc_free_block(struct btrfs_trans_handle *trans, | |||
1173 | buf->alloc_addr = (unsigned long)__builtin_return_address(0); | 1173 | buf->alloc_addr = (unsigned long)__builtin_return_address(0); |
1174 | set_extent_dirty(&trans->transaction->dirty_pages, buf->start, | 1174 | set_extent_dirty(&trans->transaction->dirty_pages, buf->start, |
1175 | buf->start + buf->len - 1, GFP_NOFS); | 1175 | buf->start + buf->len - 1, GFP_NOFS); |
1176 | /* | 1176 | btrfs_set_buffer_defrag(buf); |
1177 | set_buffer_checked(buf); | ||
1178 | set_buffer_defrag(buf); | ||
1179 | */ | ||
1180 | /* FIXME!!!!!!!!!!!!!!!! | ||
1181 | set_radix_bit(&trans->transaction->dirty_pages, buf->pages[0]->index); | ||
1182 | */ | ||
1183 | trans->blocks_used++; | 1177 | trans->blocks_used++; |
1184 | return buf; | 1178 | return buf; |
1185 | } | 1179 | } |