Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320867
b: refs/heads/master
c: 09c231c
h: refs/heads/master
i:
  320865: 878a7bc
  320863: 3595909
v: v3
  • Loading branch information
Nathan Zimmer authored and Linus Torvalds committed Aug 1, 2012
1 parent 103a114 commit d5e8dbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 6527af5d1bea219d64095a5e30c1b1e0868aae16
refs/heads/master: 09c231cb8bfdc35e7d896850d34440b8553b084f
6 changes: 4 additions & 2 deletions trunk/mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,8 @@ static struct page *shmem_swapin(swp_entry_t swap, gfp_t gfp,

/* Create a pseudo vma that just contains the policy */
pvma.vm_start = 0;
pvma.vm_pgoff = index;
/* Bias interleave by inode number to distribute better across nodes */
pvma.vm_pgoff = index + info->vfs_inode.i_ino;
pvma.vm_ops = NULL;
pvma.vm_policy = spol;
return swapin_readahead(swap, gfp, &pvma, 0);
Expand All @@ -942,7 +943,8 @@ static struct page *shmem_alloc_page(gfp_t gfp,

/* Create a pseudo vma that just contains the policy */
pvma.vm_start = 0;
pvma.vm_pgoff = index;
/* Bias interleave by inode number to distribute better across nodes */
pvma.vm_pgoff = index + info->vfs_inode.i_ino;
pvma.vm_ops = NULL;
pvma.vm_policy = mpol_shared_policy_lookup(&info->policy, index);

Expand Down

0 comments on commit d5e8dbb

Please sign in to comment.