aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.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/file.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/file.c')
-rw-r--r--fs/btrfs/file.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index c5bb00f92396..8e210616d702 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -323,10 +323,6 @@ static int noinline dirty_and_release_pages(struct btrfs_trans_handle *trans,
323 } 323 }
324 set_extent_delalloc(io_tree, start_pos, end_of_last_block, 324 set_extent_delalloc(io_tree, start_pos, end_of_last_block,
325 GFP_NOFS); 325 GFP_NOFS);
326 spin_lock(&root->fs_info->delalloc_lock);
327 root->fs_info->delalloc_bytes += (end_of_last_block + 1 -
328 start_pos) - existing_delalloc;
329 spin_unlock(&root->fs_info->delalloc_lock);
330 btrfs_add_ordered_inode(inode); 326 btrfs_add_ordered_inode(inode);
331 } else { 327 } else {
332 u64 aligned_end; 328 u64 aligned_end;