linux/fs/fuse
Stefan Hajnoczi fd1a1dc6f5 virtiofs: implement FUSE_INIT map_alignment field
The device communicates FUSE_SETUPMAPPING/FUSE_REMOVMAPPING alignment
constraints via the FUST_INIT map_alignment field.  Parse this field and
ensure our DAX mappings meet the alignment constraints.

We don't actually align anything differently since our mappings are
already 2MB aligned.  Just check the value when the connection is
established.  If it becomes necessary to honor arbitrary alignments in
the future we'll have to adjust how mappings are sized.

The upshot of this commit is that we can be confident that mappings will
work even when emulating x86 on Power and similar combinations where the
host page sizes are different.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2020-09-10 11:39:22 +02:00
..
acl.c fuse: Support fuse filesystems outside of init_user_ns 2018-03-20 17:11:44 +01:00
control.c treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
cuse.c treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
dax.c virtiofs: implement FUSE_INIT map_alignment field 2020-09-10 11:39:22 +02:00
dev.c fuse update for 5.8 2020-06-09 15:48:24 -07:00
dir.c fuse: always allow query of st_dev 2020-05-19 14:50:37 +02:00
file.c Remove uninitialized_var() macro for v5.9-rc1 2020-08-04 13:49:43 -07:00
fuse_i.h virtiofs: implement FUSE_INIT map_alignment field 2020-09-10 11:39:22 +02:00
inode.c virtiofs: implement FUSE_INIT map_alignment field 2020-09-10 11:39:22 +02:00
Kconfig virtiofs: add a mount option to enable dax 2020-09-10 11:39:22 +02:00
Makefile virtiofs: add a mount option to enable dax 2020-09-10 11:39:22 +02:00
readdir.c fuse: use true,false for bool variable 2020-02-06 16:39:28 +01:00
virtio_fs.c virtiofs: add a mount option to enable dax 2020-09-10 11:39:22 +02:00
xattr.c fuse: rearrange and resize fuse_args fields 2019-09-10 16:29:48 +02:00