aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index df97d470812a..d968900c6973 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -305,7 +305,6 @@ static int noinline dirty_and_release_pages(struct btrfs_trans_handle *trans,
305 (inline_size & (root->sectorsize -1)) == 0 || 305 (inline_size & (root->sectorsize -1)) == 0 ||
306 inline_size >= BTRFS_MAX_INLINE_DATA_SIZE(root)) { 306 inline_size >= BTRFS_MAX_INLINE_DATA_SIZE(root)) {
307 u64 last_end; 307 u64 last_end;
308 u64 existing_delalloc = 0;
309 308
310 for (i = 0; i < num_pages; i++) { 309 for (i = 0; i < num_pages; i++) {
311 struct page *p = pages[i]; 310 struct page *p = pages[i];
@@ -315,13 +314,6 @@ static int noinline dirty_and_release_pages(struct btrfs_trans_handle *trans,
315 last_end = (u64)(pages[num_pages -1]->index) << 314 last_end = (u64)(pages[num_pages -1]->index) <<
316 PAGE_CACHE_SHIFT; 315 PAGE_CACHE_SHIFT;
317 last_end += PAGE_CACHE_SIZE - 1; 316 last_end += PAGE_CACHE_SIZE - 1;
318 if (start_pos < isize) {
319 u64 delalloc_start = start_pos;
320 existing_delalloc = count_range_bits(io_tree,
321 &delalloc_start,
322 end_of_last_block, (u64)-1,
323 EXTENT_DELALLOC);
324 }
325 set_extent_delalloc(io_tree, start_pos, end_of_last_block, 317 set_extent_delalloc(io_tree, start_pos, end_of_last_block,
326 GFP_NOFS); 318 GFP_NOFS);
327 btrfs_add_ordered_inode(inode); 319 btrfs_add_ordered_inode(inode);