This patchset adds support of per-file DAX for virtiofs, which is inspired by Ira Weiny's work on ext4[1] and xfs[2]. Currently virtiofs (in guest kernel) accepts per-file DAX flag from FUSE server (in host). Currently it is not implemented yet to change per-file DAX flag inside guest kernel, e.g., by chattr(1). Any comment is welcome. :) [1] commit 9cb20f94afcd ("fs/ext4: Make DAX mount option a tri-state") [2] commit 02beb2686ff9 ("fs/xfs: Make DAX mount option a tri-state") Jeffle Xu (3): fuse: add fuse_should_enable_dax() helper fuse: Make DAX mount option a tri-state fuse: add per-file DAX flag fs/fuse/dax.c | 43 +++++++++++++++++++++++++++++++++++++-- fs/fuse/file.c | 4 ++-- fs/fuse/fuse_i.h | 16 +++++++++++---- fs/fuse/inode.c | 6 ++++-- fs/fuse/virtio_fs.c | 16 +++++++++++++-- include/uapi/linux/fuse.h | 5 +++++ 6 files changed, 78 insertions(+), 12 deletions(-) -- 2.27.0