userfaultfd.c (245f0db0de926601353776085e6f6a4c974c5615) userfaultfd.c (3ed3a4f0ddffece942bb2661924d87be4ce63cb7)
1/*
2 * mm/userfaultfd.c
3 *
4 * Copyright (C) 2015 Red Hat, Inc.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2. See
7 * the COPYING file in the top-level directory.
8 */

--- 216 unchanged lines hidden (view full) ---

225 * If the dst_pmd is mapped as THP don't
226 * override it and just be strict.
227 */
228 if (unlikely(pmd_trans_huge(dst_pmdval))) {
229 err = -EEXIST;
230 break;
231 }
232 if (unlikely(pmd_none(dst_pmdval)) &&
1/*
2 * mm/userfaultfd.c
3 *
4 * Copyright (C) 2015 Red Hat, Inc.
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2. See
7 * the COPYING file in the top-level directory.
8 */

--- 216 unchanged lines hidden (view full) ---

225 * If the dst_pmd is mapped as THP don't
226 * override it and just be strict.
227 */
228 if (unlikely(pmd_trans_huge(dst_pmdval))) {
229 err = -EEXIST;
230 break;
231 }
232 if (unlikely(pmd_none(dst_pmdval)) &&
233 unlikely(__pte_alloc(dst_mm, dst_vma, dst_pmd,
234 dst_addr))) {
233 unlikely(__pte_alloc(dst_mm, dst_pmd, dst_addr))) {
235 err = -ENOMEM;
236 break;
237 }
238 /* If an huge pmd materialized from under us fail */
239 if (unlikely(pmd_trans_huge(*dst_pmd))) {
240 err = -EFAULT;
241 break;
242 }

--- 66 unchanged lines hidden ---
234 err = -ENOMEM;
235 break;
236 }
237 /* If an huge pmd materialized from under us fail */
238 if (unlikely(pmd_trans_huge(*dst_pmd))) {
239 err = -EFAULT;
240 break;
241 }

--- 66 unchanged lines hidden ---