userfaultfd: use mmgrab instead of open-coded increment of mm_count
authorMike Rapoport <rppt@linux.vnet.ibm.com>
Thu, 16 Nov 2017 01:36:56 +0000 (17:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Nov 2017 02:21:05 +0000 (18:21 -0800)
commit00bb31fa44acf9591018810ff9d5ab375779c1cc
tree2c66edaefa2b2eab70cb7c440c55b547e36749ff
parent85ccc8fa81af74c3c9133cf243fb75f65d02a59a
userfaultfd: use mmgrab instead of open-coded increment of mm_count

Link: http://lkml.kernel.org/r/1508132478-7738-1-git-send-email-rppt@linux.vnet.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: "Dr . David Alan Gilbert" <dgilbert@redhat.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/userfaultfd.c