diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 6854bf41856a..806caacff86c 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -883,13 +883,6 @@ static int cow_file_range_async(struct inode *inode, struct page *locked_page, | |||
883 | async_cow->work.ordered_free = async_cow_free; | 883 | async_cow->work.ordered_free = async_cow_free; |
884 | async_cow->work.flags = 0; | 884 | async_cow->work.flags = 0; |
885 | 885 | ||
886 | while(atomic_read(&root->fs_info->async_submit_draining) && | ||
887 | atomic_read(&root->fs_info->async_delalloc_pages)) { | ||
888 | wait_event(root->fs_info->async_submit_wait, | ||
889 | (atomic_read(&root->fs_info->async_delalloc_pages) | ||
890 | == 0)); | ||
891 | } | ||
892 | |||
893 | nr_pages = (cur_end - start + PAGE_CACHE_SIZE) >> | 886 | nr_pages = (cur_end - start + PAGE_CACHE_SIZE) >> |
894 | PAGE_CACHE_SHIFT; | 887 | PAGE_CACHE_SHIFT; |
895 | atomic_add(nr_pages, &root->fs_info->async_delalloc_pages); | 888 | atomic_add(nr_pages, &root->fs_info->async_delalloc_pages); |