On Wed, Jul 20, 2016 at 03:04:18PM +0800, Qu Wenruo wrote: > Signed-off-by: Qu Wenruo <quwenruo@xxxxxxxxxxxxxx> > --- > fs/btrfs/backref.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c > index 8bb3509..4197610d 100644 > --- a/fs/btrfs/backref.c > +++ b/fs/btrfs/backref.c > @@ -589,6 +589,7 @@ static void __merge_refs(struct list_head *head, int mode) > > list_del(&ref2->list); > kmem_cache_free(btrfs_prelim_ref_cache, ref2); > + cond_resched(); For a potentially long loop it's a good idea to add the cond resched, Reviewed-by: David Sterba <dsterba@xxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
