]> git.hungrycats.org Git - linux/commitdiff
Revert "Btrfs: don't monopolize a core when evicting inode" zygo-3.18.3-zb64
authorZygo Blaxell <zblaxell@waya.furryterror.org>
Sun, 25 Jan 2015 23:06:21 +0000 (18:06 -0500)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Sun, 25 Jan 2015 23:06:21 +0000 (18:06 -0500)
This reverts commit 7064dd5c36187725e7ccfd837e07678ae435d3f5.

fs/btrfs/inode.c

index b33277be8bd389b3190b68200f96bb37b03b9a68..b135ef5f7258d86234498715a4f305765cb59dd3 100644 (file)
@@ -4801,11 +4801,6 @@ static void evict_inode_truncate_pages(struct inode *inode)
                clear_bit(EXTENT_FLAG_LOGGING, &em->flags);
                remove_extent_mapping(map_tree, em);
                free_extent_map(em);
-               if (need_resched()) {
-                       write_unlock(&map_tree->lock);
-                       cond_resched();
-                       write_lock(&map_tree->lock);
-               }
        }
        write_unlock(&map_tree->lock);
 
@@ -4828,7 +4823,6 @@ static void evict_inode_truncate_pages(struct inode *inode)
                                 &cached_state, GFP_NOFS);
                free_extent_state(state);
 
-               cond_resched();
                spin_lock(&io_tree->lock);
        }
        spin_unlock(&io_tree->lock);