mm: enable page walking API to lock vmas during the walk
[linux-2.6-block.git] / mm / mincore.c
index b7f7a516b26cd16945a754f343aa3761c1e84ae1..dad3622cc963e88448e31f70f8cf564c71a4d7f7 100644 (file)
@@ -176,6 +176,7 @@ static const struct mm_walk_ops mincore_walk_ops = {
        .pmd_entry              = mincore_pte_range,
        .pte_hole               = mincore_unmapped_range,
        .hugetlb_entry          = mincore_hugetlb,
+       .walk_lock              = PGWALK_RDLOCK,
 };
 
 /*