summaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorChris Wright2011-07-26 02:12:14 +0200
committerLinus Torvalds2011-07-26 05:57:09 +0200
commitd788e80a8c83ecdbdd55b6e985cced9cfe3a815b (patch)
treed287900bc24e17b7d65f1f57b9c59901040ea01d /mm/hugetlb.c
parentmm/page_cgroup.c: simplify code by using SECTION_ALIGN_UP() and SECTION_ALIGN... (diff)
downloadkernel-qcow2-linux-d788e80a8c83ecdbdd55b6e985cced9cfe3a815b.tar.gz
kernel-qcow2-linux-d788e80a8c83ecdbdd55b6e985cced9cfe3a815b.tar.xz
kernel-qcow2-linux-d788e80a8c83ecdbdd55b6e985cced9cfe3a815b.zip
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>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions