Skip to contentSkip to conversation

virtiofs: avoid unnecessary VM_MIXEDMAP for mmap support

PATCH New Gao Xiang 1 participant 1 message Jan 23, 2024

Subsystems (2)
lore
Share & tools
lore

Gao Xiang

author
#0 lore raw

PATCH 1/1 virtiofs: avoid unnecessary VM_MIXEDMAP for mmap support

After commit e1fb4a0864958 ("dax: remove VM_MIXEDMAP for fsdax and device dax"), VM_MIXEDMAP seems unnecessary for virtiofs DAX mapping (devmap).

At least I'm not sure why VM_MIXEDMAP is used during some internal review (I guess that was added due to the current DAX documentation), it could avoid copying page table when forking since page faults could fill DAX VMAs just fine.

---
 fs/fuse/dax.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/dax.c +1 -1
index 12ef91d170bb..5a3c17a80340 100644
@@ -858,7 +858,7 @@ int fuse_dax_mmap(struct file *file, struct vm_area_struct *vma)
 {
 	file_accessed(file);
 	vma->vm_ops = &fuse_dax_vm_ops;
-	vm_flags_set(vma, VM_MIXEDMAP | VM_HUGEPAGE);
+	vm_flags_set(vma, VM_HUGEPAGE);
 	return 0;
 }
 
Signature · 1 line
2.39.3