]> git.ipfire.org Git - thirdparty/linux.git/commit
fs/dax: make it possible to check dev dax support without a VMA
authorLorenzo Stoakes <lorenzo.stoakes@oracle.com>
Mon, 16 Jun 2025 19:33:23 +0000 (20:33 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 17 Jun 2025 11:47:44 +0000 (13:47 +0200)
commit0335f6afd3488d1101f3b15014095fa51b978253
tree894de0c9f6b3f94642e8fc73535d4e0ec780e74e
parentb013ed403197f3f8c30ddb3ce66fe05a632b3493
fs/dax: make it possible to check dev dax support without a VMA

This is a prerequisite for adapting those filesystems to use the
.mmap_prepare() hook for mmap()'ing which invoke this check as this hook
does not have access to a VMA pointer.

To effect this, change the signature of daxdev_mapping_supported() and
update its callers (ext4 and xfs mmap()'ing hook code).

Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Link: https://lore.kernel.org/b09de1e8544384074165d92d048e80058d971286.1750099179.git.lorenzo.stoakes@oracle.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ext4/file.c
fs/xfs/xfs_file.c
include/linux/dax.h