[PATCH 1/5] userfaultfd: use ENOENT instead of EFAULT if the atomic copy user fails

2018-11-26 Thread Andrea Arcangeli
We internally used EFAULT to communicate with the caller, switch to ENOENT, so EFAULT can be used as a non internal retval. Reviewed-by: Mike Rapoport Reviewed-by: Hugh Dickins Cc: sta...@vger.kernel.org Fixes: 4c27fe4c4c84 ("userfaultfd: shmem: add shmem_mcopy_atomic_pte for userfaultfd

[PATCH 1/5] userfaultfd: use ENOENT instead of EFAULT if the atomic copy user fails

2018-11-26 Thread Andrea Arcangeli
We internally used EFAULT to communicate with the caller, switch to ENOENT, so EFAULT can be used as a non internal retval. Reviewed-by: Mike Rapoport Reviewed-by: Hugh Dickins Cc: sta...@vger.kernel.org Fixes: 4c27fe4c4c84 ("userfaultfd: shmem: add shmem_mcopy_atomic_pte for userfaultfd