Skip to content

Commit c2d0ad0

Browse files
rhvgoyalMiklos Szeredi
authored andcommitted
virtiofs: implement dax read/write operations
This patch implements basic DAX support. mmap() is not implemented yet and will come in later patches. This patch looks into implemeting read/write. We make use of interval tree to keep track of per inode dax mappings. Do not use dax for file extending writes, instead just send WRITE message to daemon (like we do for direct I/O path). This will keep write and i_size change atomic w.r.t crash. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com> Signed-off-by: Peng Tao <tao.peng@linux.alibaba.com> Cc: Dave Chinner <david@fromorbit.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
1 parent ceec02d commit c2d0ad0

6 files changed

Lines changed: 612 additions & 6 deletions

File tree

‎fs/fuse/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ config VIRTIO_FS
4242
config FUSE_DAX
4343
bool "Virtio Filesystem Direct Host Memory Access support"
4444
default y
45+
select INTERVAL_TREE
4546
depends on VIRTIO_FS
4647
depends on FS_DAX
4748
depends on DAX_DRIVER

0 commit comments

Comments
 (0)