aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-01-29 15:55:23 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:00 -0400
commit291d673e6a22d9c6834e939f66c7cfef90669021 (patch)
tree841e9be40bb5fbf7c978c789ee67183cef596686 /fs/btrfs/extent-tree.c
parent9c58309d6cf22471dacbcb6de54d00cef9ca20d4 (diff)
Btrfs: Do delalloc accounting via hooks in the extent_state 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.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index c4fe37791d3f..90718f77bbc0 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -2180,7 +2180,6 @@ static int noinline relocate_inode_pages(struct inode *inode, u64 start,
2180 unsigned long last_index; 2180 unsigned long last_index;
2181 unsigned long i; 2181 unsigned long i;
2182 struct page *page; 2182 struct page *page;
2183 struct btrfs_root *root = BTRFS_I(inode)->root;
2184 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; 2183 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
2185 struct file_ra_state *ra; 2184 struct file_ra_state *ra;
2186 2185
@@ -2220,11 +2219,6 @@ static int noinline relocate_inode_pages(struct inode *inode, u64 start,
2220 set_extent_delalloc(io_tree, page_start, 2219 set_extent_delalloc(io_tree, page_start,
2221 page_end, GFP_NOFS); 2220 page_end, GFP_NOFS);
2222 2221
2223 spin_lock(&root->fs_info->delalloc_lock);
2224 root->fs_info->delalloc_bytes += PAGE_CACHE_SIZE -
2225 existing_delalloc;
2226 spin_unlock(&root->fs_info->delalloc_lock);
2227
2228 unlock_extent(io_tree, page_start, page_end, GFP_NOFS); 2222 unlock_extent(io_tree, page_start, page_end, GFP_NOFS);
2229 set_page_dirty(page); 2223 set_page_dirty(page);
2230 unlock_page(page); 2224 unlock_page(page);