|
|
@@ -1420,10 +1420,9 @@ static void shmem_pseudo_vma_init(struct vm_area_struct *vma,
|
|
|
struct shmem_inode_info *info, pgoff_t index)
|
|
|
{
|
|
|
/* Create a pseudo vma that just contains the policy */
|
|
|
- vma->vm_start = 0;
|
|
|
+ memset(vma, 0, sizeof(*vma));
|
|
|
/* Bias interleave by inode number to distribute better across nodes */
|
|
|
vma->vm_pgoff = index + info->vfs_inode.i_ino;
|
|
|
- vma->vm_ops = NULL;
|
|
|
vma->vm_policy = mpol_shared_policy_lookup(&info->policy, index);
|
|
|
}
|
|
|
|