From a481d0d019fa961389192ebd096f7b139b966541 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Mon, 9 Jul 2007 18:52:01 +0200 Subject: [PATCH] --- yaml --- r: 58306 b: refs/heads/master c: 6fb43d7b50e49a36f8be3199141bec473e5ecb00 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/sched.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 9e0a14031e31..54cd66b3d9ff 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9c4801cebc2add1fe514bc8eb201b16372eee11a +refs/heads/master: 6fb43d7b50e49a36f8be3199141bec473e5ecb00 diff --git a/trunk/include/linux/sched.h b/trunk/include/linux/sched.h index 785ec8465bd3..cfb680585ab8 100644 --- a/trunk/include/linux/sched.h +++ b/trunk/include/linux/sched.h @@ -1514,7 +1514,7 @@ extern struct mm_struct * mm_alloc(void); extern void FASTCALL(__mmdrop(struct mm_struct *)); static inline void mmdrop(struct mm_struct * mm) { - if (atomic_dec_and_test(&mm->mm_count)) + if (unlikely(atomic_dec_and_test(&mm->mm_count))) __mmdrop(mm); }