]> git.baikalelectronics.ru Git - kernel.git/commit
userfaultfd: remove unnecessary WARN_ON() in __mcopy_atomic_hugetlb()
authorWei Yang <richardw.yang@linux.intel.com>
Sun, 1 Dec 2019 01:57:52 +0000 (17:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 1 Dec 2019 20:59:10 +0000 (12:59 -0800)
commit32c94a77e51b355f2c1be718fd816d8fd51f0182
tree03f96cbc9f83f363c0826a859a6d70cfdbe62cbe
parentf831077bdafc2c023f74637f96be71e300f03d3f
userfaultfd: remove unnecessary WARN_ON() in __mcopy_atomic_hugetlb()

These warning here is to make sure address(dst_addr) and length(len -
copied) are huge page size aligned.

While this is ensured by:

    dst_start and len is huge page size aligned
    dst_addr equals to dst_start and increase huge page size each time
    copied increase huge page size each time

This means these warnings will never be triggered.

Link: http://lkml.kernel.org/r/20190927070032.2129-2-richardw.yang@linux.intel.com
Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/userfaultfd.c