History

mm/vma: make vma_is_accessible() available for general use

Lets move vma_is_accessible() helper to include/linux/mm.h which makes it available for general use. While here, this replaces all remaining open encodings for VMA access check with vma_is_accessible().

Anshuman Khandual committed 6 years ago

Commit 3122e801 parent 7e96fb512 files · +17 −18Browse files

Showing the changes to kernel (1 of 12 files). Show all

Unified · Split

kernel/sched/fair.c+1−1
@@ -2799,7 +2799,7 @@ static void task_numa_work(struct callback_head *work) · 2798 unmodified lines
27992799 * Skip inaccessible VMAs to avoid any confusion between
28002800 * PROT_NONE and NUMA hinting ptes
28012801 */
2802− if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)))
2802+ if (!vma_is_accessible(vma))
28032803 continue;
28042804
28052805 do {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t