找不到 VM_RESERVED
常数和 nopage
3.9.6 中的方法(在 vm_operations_struct
中)。它们在 3.9.6 中的替代品是什么?
最佳答案
在 the patch removing VM_RESERVED
,作者有这样的建议:
A long time ago, in v2.4,
VM_RESERVED
kept swapout process off VMA, currently it lost original meaning but still has some effects:| effect | alternative flags -+------------------------+--------------------------------------------- 1| account as reserved_vm | VM_IO 2| skip in core dump | VM_IO, VM_DONTDUMP 3| do not merge or expand | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP 4| do not mlock | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
Thus
VM_RESERVED
can be replaced withVM_IO
or pairVM_DONTEXPAND | VM_DONTDUMP
.
vm_ops->nopage
被替换为 vm_ops->fault
在 this patch .
关于linux-kernel - 常量类似 "VM_RESERVED"和 3.9.6 中的 nopage 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17311450/