Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263810
b: refs/heads/master
c: 8aacc9f
h: refs/heads/master
v: v3
  • Loading branch information
Caspar Zhang authored and Linus Torvalds committed Sep 15, 2011
1 parent c3126d7 commit def657b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: bcd438be3b66110dfe70f655cadb2b20e201f076
refs/heads/master: 8aacc9f550feb09c8b26470498345c192996a68e
5 changes: 2 additions & 3 deletions trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,6 @@ static int mbind_range(struct mm_struct *mm, unsigned long start,
struct vm_area_struct *prev;
struct vm_area_struct *vma;
int err = 0;
pgoff_t pgoff;
unsigned long vmstart;
unsigned long vmend;

Expand All @@ -649,9 +648,9 @@ static int mbind_range(struct mm_struct *mm, unsigned long start,
vmstart = max(start, vma->vm_start);
vmend = min(end, vma->vm_end);

pgoff = vma->vm_pgoff + ((start - vma->vm_start) >> PAGE_SHIFT);
prev = vma_merge(mm, prev, vmstart, vmend, vma->vm_flags,
vma->anon_vma, vma->vm_file, pgoff, new_pol);
vma->anon_vma, vma->vm_file, vma->vm_pgoff,
new_pol);
if (prev) {
vma = prev;
next = vma->vm_next;
Expand Down

0 comments on commit def657b

Please sign in to comment.