Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751002AbdFTGVE (ORCPT ); Tue, 20 Jun 2017 02:21:04 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:59488 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750910AbdFTGVD (ORCPT ); Tue, 20 Jun 2017 02:21:03 -0400 From: Mike Rapoport To: Andrew Morton Cc: Andrea Arcangeli , Hugh Dickins , "Kirill A. Shutemov" , Hillf Danton , Pavel Emelyanov , linux mm , lkml , Mike Rapoport Subject: [PATCH 0/7] userfaultfd: enable zeropage support for shmem Date: Tue, 20 Jun 2017 09:20:45 +0300 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 17062006-0008-0000-0000-0000046B1A3F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17062006-0009-0000-0000-00001DF4C293 Message-Id: <1497939652-16528-1-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-06-20_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1706200115 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1029 Lines: 25 Hi, These patches enable support for UFFDIO_ZEROPAGE for shared memory. The first two patches are not strictly related to userfaultfd, they are just minor refactoring to reduce amount of code duplication. Mike Rapoport (7): shmem: shmem_charge: verify max_block is not exceeded before inode update shmem: introduce shmem_inode_acct_block userfaultfd: shmem: add shmem_mfill_zeropage_pte for userfaultfd support userfaultfd: mcopy_atomic: introduce mfill_atomic_pte helper userfaultfd: shmem: wire up shmem_mfill_zeropage_pte userfaultfd: report UFFDIO_ZEROPAGE as available for shmem VMAs userfaultfd: selftest: enable testing of UFFDIO_ZEROPAGE for shmem fs/userfaultfd.c | 10 +- include/linux/shmem_fs.h | 6 ++ mm/shmem.c | 167 +++++++++++++++++-------------- mm/userfaultfd.c | 48 ++++++--- tools/testing/selftests/vm/userfaultfd.c | 2 +- 5 files changed, 136 insertions(+), 97 deletions(-) -- 2.7.4