From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795547339; b=TVLdseEBtHaIVcu0EkEd/CbqDMBKgyvEV2srT4LTvOw2GkBHJxyvbVk3/Js5dpg5Ytn1 YsFRFB38ebtlCdw4az1O522B1n9lrmK6zXLGLguYpIvgm6DFlQxicOFSyLJv9r9KhD6Ak 7MkVaJ6PIX/NdXPt2rVM4baBl4aAo7hPWzNQ5IggxfJAgaK3It8/amcBJ5qLsWxTvK/fB CVeJAaObjUeqWJ47dE6ixlZplROeRIzk6vgZI/ifq5HEuIqvl3buOLQO5ewUTQ4RaUq1c kX1LPchYtpaMoKc72wohOb56ubVmu566DyrjbCSp2lApCSdy47g5yMAHHv/Vn5DWXiw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795547339; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=7BJJZm25ek693bE/UGHWkug21jWPNSM+VBWRgUhJNLc=; b=HddyNwPBrWtRLe4eC9g0o0WiJ4RhrU6s/9e2ZVElFxXQ1EQK7+Go0XMNgYWydcgdt5ww RZ6bN2SDflVARtz8cSy2eGoVtkzyplnRAXQvLT/+wM/Kr24Gjlzdcy5XmXwg/sSJNMF59 tzZlV0WCQXzCV7jCHqAORdnGrtyiBg6Jq7P3HjCG4ZFm4WYx59WjCf55xg33VhpvYdpnC WrnGPVUTwvaKzskePqEQp5I5KgC0L0oVNYVA5x3ZC/v4Nb4k7y8eL5mU/MhGCF9/sv1kS Gf114phvmAdopJ/UZZXu6DzJ8c/twrdXUqfBDjpn9s6gGhPSv4mKXkwXnyTAJ6f0loQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=xDmzQtsZ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00FB2606A31E for ; Tue, 24 Nov 2026 19:08:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=xDmzQtsZ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DB6E1F000CF; Tue, 24 Nov 2026 19:08:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1795547338; bh=7BJJZm25ek693bE/UGHWkug21jWPNSM+VBWRgUhJNLc=; h=Date:To:From:In-Reply-To:References:Subject; b=xDmzQtsZzL9MgcMEPROgeSR4/0qdIzKOIUN4359Dg2mkdQu52ZaER/dts5vjdbSc3 TxvY2PUWIwu5nr9edm5txkzdLKqXN0vqptV9w/HEKlY4IHoCEep4jiIfXGzUhIJ6Sv TPiIkYpX+2Av46VWDeldsUD+qs63XctE36bx83q4= Date: Tue, 24 Nov 2026 11:08:57 -0800 To: mm-commits@vger.kernel.org,xuanzhuo@linux.alibaba.com,wei.liu@kernel.org, tglx@kernel.org,sumit.garg@kernel.org,stephen.smalley.work@gmail.com, sstabellini@kernel.org,sshegde@linux.ibm.com,scott.branden@broadcom.com, ryan_chen@aspeedtech.com,ritesh.list@gmail.com,richardcochran@gmail.com, paul@paul-moore.com,pabeni@redhat.com,omosnacek@gmail.com, oleksandr_tyshchenko@epam.com,npiggin@gmail.com,mst@redhat.com, mpe@ellerman.id.au,mingo@redhat.com,mhklinux@outlook.com,maddy@linux.ibm.com, kuba@kernel.org,konradybcio@kernel.org,kameroncarr@linux.microsoft.com, joel@jms.id.au,jgross@suse.com,jens.wiklander@oss.qualcomm.com, jenswi@kernel.org,jasowangio@gmail.com,jarkko@kernel.org,jack@suse.cz, jack@suse.com,hpa@zytor.com,haiyangz@microsoft.com, gregkh@linuxfoundation.org,eperezma@redhat.com,edumazet@kernel.org, dwmw@amazon.co.uk,decui@microsoft.com,davem@davemloft.net, dave.hansen@linux.intel.com,chleroy@kernel.org,bp@alien8.de, billy_tsai@aspeedtech.com,arnd@arndb.de,andrew+netdev@lunn.ch, andrew@codeconstruct.com.au,andersson@kernel.org,abel.vesa@oss.qualcomm.com, ljs@kernel.org,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20261124-late-2026-mmap_prepare-v2-5-0b0d99d655f9@kernel.org> References: <20261124-late-2026-mmap_prepare-v2-5-0b0d99d655f9@kernel.org> Subject: + udf-convert-mmap-hook-to-mmap_prepare.patch added to mm-new branch Message-Id: <20261124190858.5DB6E1F000CF@smtp.kernel.org> X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list The patch titled Subject: udf: convert mmap hook to mmap_prepare has been added to the -mm mm-new branch. Its filename is udf-convert-mmap-hook-to-mmap_prepare.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/udf-convert-mmap-hook-to-mmap_prepare.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. The mm-new branch of mm.git is not included in linux-next If a few days of testing in mm-new is successful, the patch will me moved into mm.git's mm-unstable branch, which is included in linux-next Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: "Lorenzo Stoakes (ARM)" Subject: udf: convert mmap hook to mmap_prepare Date: Tue, 24 Nov 2026 14:02:48 +0000 Move from the deprecated mmap hook to the new mmap_prepare hook. The hook only updates the access time and sets the VMA operations. Link: https://patch.msgid.link/20261124-late-2026-mmap_prepare-v2-5-0b0d99d655f9@kernel.org Signed-off-by: Lorenzo Stoakes (ARM) Signed-off-by: Andrew Morton Reviewed-by: Jan Kara Cc: Juergen Gross Cc: Stefano Stabellini Cc: Oleksandr Tyshchenko Cc: Madhavan Srinivasan Cc: Nicholas Piggin Cc: Michael Ellerman Cc: Christophe Leroy Cc: Ritesh Harjani (IBM) Cc: Shrikanth Hegde Cc: Haiyang Zhang Cc: Wei Liu Cc: Dexuan Cui Cc: Michael S. Tsirkin Cc: Jason Wang Cc: Eugenio Pérez Cc: Xuan Zhuo Cc: Jarkko Sakkinen Cc: Dave Hansen Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: H. Peter Anvin Cc: Jan Kara Cc: Paul Moore Cc: Stephen Smalley Cc: Ondrej Mosnáček Cc: Joel Stanley Cc: Andrew Jeffery Cc: Ryan Chen Cc: Billy Tsai Cc: Bjorn Andersson Cc: Konrad Dybcio Cc: Jens Wiklander Cc: Sumit Garg Cc: Scott Branden Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Richard Cochran Cc: Andrew Lunn Cc: David S. Miller Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni Cc: Jens Wiklander Cc: Abel Vesa Cc: Kameron Carr Cc: Michael Kelley Cc: David Woodhouse fs/udf/file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/fs/udf/file.c~udf-convert-mmap-hook-to-mmap_prepare +++ a/fs/udf/file.c @@ -190,10 +190,10 @@ static int udf_release_file(struct inode return 0; } -static int udf_file_mmap(struct file *file, struct vm_area_struct *vma) +static int udf_file_mmap_prepare(struct vm_area_desc *desc) { - file_accessed(file); - vma->vm_ops = &udf_file_vm_ops; + file_accessed(desc->file); + desc->vm_ops = &udf_file_vm_ops; return 0; } @@ -202,7 +202,7 @@ const struct file_operations udf_file_op .read_iter = generic_file_read_iter, .unlocked_ioctl = udf_ioctl, .open = generic_file_open, - .mmap = udf_file_mmap, + .mmap_prepare = udf_file_mmap_prepare, .write_iter = udf_file_write_iter, .release = udf_release_file, .fsync = simple_fsync, _ Patches currently in -mm which might be from ljs@kernel.org are mm-msync-return-enomem-if-page-aligned-length-overflows.patch mm-vma-drop-mm-asynchronously-in-vma_start_read.patch mm-vma-predicate-vma_assert_stabilised-on-config_debug_vm.patch mm-only-assert-mmap-locks-if-config_debug_vm-or-lockdep-is-set.patch mm-only-assert-vma-locks-if-config_debug_vm-is-set.patch mm-convert-warn_on_onces-to-vm_warn_on_once-in-vma-lock-code.patch mm-madvise-zap-markers-from-guard-regions.patch mm-mmap-free-gathered-pages-before-mmf_oom_skip.patch percpu-fix-contig-hints-that-are-too-low.patch percpu-search-the-whole-reserved-chunk.patch mm-filemap-convert-fault-and-readahead-logic-to-use-vma_flags_t.patch mm-madvise-convert-madvise_vma_behavior-to-use-vma_flags_t.patch mm-convert-miscellaneous-vma-flag-tests-to-use-vma_flags_t.patch fs-proc-task_mmu-convert-vma-flag-tests-to-use-vma_flags_t.patch fs-coredump-convert-vma_dump_size-to-use-vma_flags_t.patch uprobes-convert-vma-flag-tests-to-use-vma_flags_t.patch perf-convert-vma-flag-tests-to-use-vma_flags_t.patch selinux-convert-vma-flag-tests-to-use-vma_flags_t.patch apparmor-convert-vma-flag-tests-to-use-vma_flags_t.patch ima-convert-vma-flag-tests-to-use-vma_flags_t.patch ipe-convert-vma-flag-tests-to-use-vma_flags_t.patch xen-privcmd-convert-mmap-hook-to-mmap_prepare.patch kvm-ppc-book3s-convert-spapr-tce-mmap-hook-to-mmap_prepare.patch mshv_vtl-convert-mmap-hooks-to-mmap_prepare.patch x86-sgx-convert-vepc-mmap-hook-to-mmap_prepare.patch udf-convert-mmap-hook-to-mmap_prepare.patch selinuxfs-convert-mmap-hooks-to-mmap_prepare.patch xen-convert-xenstore-interface-mmap-hooks-to-mmap_prepare.patch soc-aspeed-convert-lpc-and-p2a-control-mmap-hooks-to-mmap_prepare.patch soc-qcom-rmtfs_mem-convert-mmap-hook-to-mmap_prepare.patch tee-convert-shm-mmap-hook-to-mmap_prepare.patch misc-bcm-vk-convert-mmap-hook-to-mmap_prepare.patch ptp-vmclock-convert-mmap-hook-to-mmap_prepare.patch vhost-vdpa-convert-mmap-hook-to-mmap_prepare.patch