]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm,hugetlb: make unmap_ref_private() return void
authorDavidlohr Bueso <davidlohr@hp.com>
Wed, 6 Aug 2014 23:06:45 +0000 (16:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <davidlohr@hp.com>
Cc: Aswin Chandramouleeswaran <aswin@hp.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c