mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-07-10 22:43:25 +00:00
完善重映射过程中获取新映射区域时的map_flags (#569)
This commit is contained in:
kernel/src/mm
@ -129,6 +129,10 @@ impl Into<MapFlags> for VmFlags {
|
||||
map_flags |= MapFlags::MAP_SYNC;
|
||||
}
|
||||
|
||||
if self.contains(VmFlags::VM_MAYSHARE) {
|
||||
map_flags |= MapFlags::MAP_SHARED;
|
||||
}
|
||||
|
||||
map_flags
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user