Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174848
b: refs/heads/master
c: 9358741
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Dec 11, 2009
1 parent e0e0ec0 commit 163d6a7
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: 097eed103862f9c6a97f2e415e21d1134017b135
refs/heads/master: 935874141df839c706cd6cdc438e85eb69d1525e
4 changes: 3 additions & 1 deletion trunk/mm/mremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ unsigned long do_mremap(unsigned long addr,
map_flags |= MAP_SHARED;

new_addr = get_unmapped_area(vma->vm_file, 0, new_len,
vma->vm_pgoff, map_flags);
vma->vm_pgoff +
((addr - vma->vm_start) >> PAGE_SHIFT),
map_flags);
if (new_addr & ~PAGE_MASK) {
ret = new_addr;
goto out;
Expand Down

0 comments on commit 163d6a7

Please sign in to comment.