mm,hugetlb: make unmap_ref_private() return void
authorDavidlohr Bueso <[email protected]>
Wed, 6 Aug 2014 23:06:45 +0000 (16:06 -0700)
committerLinus Torvalds <[email protected]>
Thu, 7 Aug 2014 01:01:19 +0000 (18:01 -0700)
commit2f4612af43d4854c892f5ef8ed7a98b6492aee44
tree4c8534fb31083bb59f225124f252abd7fa8a3486
parenteb39d618f9e80f81cfc5788cf1b252d141c2f0c3
mm,hugetlb: make unmap_ref_private() return void

This function always returns 1, thus no need to check return value in
hugetlb_cow().  By doing so, we can get rid of the unnecessary WARN_ON
call.  While this logic perhaps existed as a way of identifying future
unmap_ref_private() mishandling, reality is it serves no apparent
purpose.

Signed-off-by: Davidlohr Bueso <[email protected]>
Cc: Aswin Chandramouleeswaran <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/hugetlb.c