How to disable fault-around by debugfs?
秦弋戈
michaelbest002 at 126.com
Wed Nov 12 03:13:30 EST 2014
Hi,
I'm just the guy who asked a question about the page fault handler days ago. Thanks for telling me about the fault-around feature.
You also told me that this feature could be disabled in debugfs, but I still don't know how to achieve it by debugfs. I only know that debugfs is something that developers could put information about kernel there. So could you tell me how to disable fault-around feature by debugfs? Or is it OK to directly modify kernel? I find where it is located in source:
3518 if (vma->vm_ops->map_pages) {
3519 pte = pte_offset_map_lock(mm, pmd, address, &ptl);
3520 do_fault_around(vma, address, pte, pgoff, flags);
3521 if (!pte_same(*pte, orig_pte))
3522 goto unlock_out;
3523 pte_unmap_unlock(pte, ptl);
3524 }
Thank you very much!
Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141112/07185fc0/attachment.html
More information about the Kernelnewbies
mailing list