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
2799 * Skip inaccessible VMAs to avoid any confusion between2799 * Skip inaccessible VMAs to avoid any confusion between
2800 * PROT_NONE and NUMA hinting ptes2800 * PROT_NONE and NUMA hinting ptes
2801 */2801 */
2802 if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)))2802 if (!vma_is_accessible(vma))
2803 continue;2803 continue;
2804 2804
2805 do {2805 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