]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs: convert most other generic_file_*mmap() users to .mmap_prepare()
authorLorenzo Stoakes <lorenzo.stoakes@oracle.com>
Mon, 16 Jun 2025 19:33:28 +0000 (20:33 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 19 Jun 2025 11:56:57 +0000 (13:56 +0200)
commit9d5403b1036cdcd4be0f9f5568612c0e60e73d79
tree49858f96630c59ed99ce497aa34c2df8925792e9
parent951ea2f4844c22833f8c3201103c7ed817e7e377
fs: convert most other generic_file_*mmap() users to .mmap_prepare()

Update nearly all generic_file_mmap() and generic_file_readonly_mmap()
callers to use generic_file_mmap_prepare() and
generic_file_readonly_mmap_prepare() respectively.

We update blkdev, 9p, afs, erofs, ext2, nfs, ntfs3, smb, ubifs and vboxsf
file systems this way.

Remaining users we cannot yet update are ecryptfs, fuse and cramfs. The
former two are nested file systems that must support any underlying file
ssytem, and cramfs inserts a mixed mapping which currently requires a VMA.

Once all file systems have been converted to mmap_prepare(), we can then
update nested file systems.

Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Link: https://lore.kernel.org/08db85970d89b17a995d2cffae96fb4cc462377f.1750099179.git.lorenzo.stoakes@oracle.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
14 files changed:
block/fops.c
fs/9p/vfs_file.c
fs/afs/file.c
fs/erofs/data.c
fs/ext2/file.c
fs/nfs/file.c
fs/nfs/internal.h
fs/nfs/nfs4file.c
fs/ntfs3/file.c
fs/smb/client/cifsfs.c
fs/smb/client/cifsfs.h
fs/smb/client/file.c
fs/ubifs/file.c
fs/vboxsf/file.c