Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344778
b: refs/heads/master
c: 1233d58
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar authored and Mel Gorman committed Dec 11, 2012
1 parent 3475dbd commit 39e53ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7da4d641c58d201c3cc1835c05ca1a7fa26f0856
refs/heads/master: 1233d588210737ed3696b44c26e71dfa44a6995a
4 changes: 3 additions & 1 deletion trunk/mm/mprotect.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ static unsigned long change_protection_range(struct vm_area_struct *vma,
dirty_accountable);
} while (pgd++, addr = next, addr != end);

flush_tlb_range(vma, start, end);
/* Only flush the TLB if we actually modified any entries: */
if (pages)
flush_tlb_range(vma, start, end);

return pages;
}
Expand Down

0 comments on commit 39e53ce

Please sign in to comment.