mm/huge_memory.c: minor lock simplification in __khugepaged_exit
authorChris Wright <chrisw@sous-sol.org>
Tue, 26 Jul 2011 00:12:14 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:09 +0000 (20:57 -0700)
commitd788e80a8c83ecdbdd55b6e985cced9cfe3a815b
treed287900bc24e17b7d65f1f57b9c59901040ea01d
parent1bb36fbd4d58ec3fab4dab5ed39a2af492c263ea
mm/huge_memory.c: minor lock simplification in __khugepaged_exit

The lock is released first thing in all three branches.  Simplify this by
unconditionally releasing lock and remove else clause which was only there
to be sure lock was released.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Johannes Weiner <jweiner@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c