thp: change pmd_trans_huge_lock() interface to return ptl
authorKirill A. Shutemov <[email protected]>
Fri, 22 Jan 2016 00:40:25 +0000 (16:40 -0800)
committerLinus Torvalds <[email protected]>
Fri, 22 Jan 2016 01:20:51 +0000 (17:20 -0800)
commitb6ec57f4b92e9bae4617f7d98a054d45370284bb
tree31b894dc2fa7c8a885baa4be7094c73002999719
parent404a47410c26a115123885977053e9a1a4460929
thp: change pmd_trans_huge_lock() interface to return ptl

After THP refcounting rework we have only two possible return values
from pmd_trans_huge_lock(): success and failure.  Return-by-pointer for
ptl doesn't make much sense in this case.

Let's convert pmd_trans_huge_lock() to return ptl on success and NULL on
failure.

Signed-off-by: Kirill A. Shutemov <[email protected]>
Suggested-by: Linus Torvalds <[email protected]>
Cc: Minchan Kim <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/proc/task_mmu.c
include/linux/huge_mm.h
mm/huge_memory.c
mm/memcontrol.c
mm/mincore.c