Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74301
b: refs/heads/master
c: e84e2e1
h: refs/heads/master
i:
  74299: 2197f87
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Nov 28, 2007
1 parent 7196cd5 commit c2c5694
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 9bfb52ad716e74785b2402b7ea17f30e0344b8e8
refs/heads/master: e84e2e132c9c66d8498e7710d4ea532d1feaaac5
5 changes: 3 additions & 2 deletions trunk/mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ shmem_alloc_page(gfp_t gfp, struct shmem_inode_info *info,
pvma.vm_policy = mpol_shared_policy_lookup(&info->policy, idx);
pvma.vm_pgoff = idx;
pvma.vm_end = PAGE_SIZE;
page = alloc_page_vma(gfp | __GFP_ZERO, &pvma, 0);
page = alloc_page_vma(gfp, &pvma, 0);
mpol_free(pvma.vm_policy);
return page;
}
Expand All @@ -1093,7 +1093,7 @@ shmem_swapin(struct shmem_inode_info *info,swp_entry_t entry,unsigned long idx)
static inline struct page *
shmem_alloc_page(gfp_t gfp,struct shmem_inode_info *info, unsigned long idx)
{
return alloc_page(gfp | __GFP_ZERO);
return alloc_page(gfp);
}
#endif

Expand Down Expand Up @@ -1306,6 +1306,7 @@ static int shmem_getpage(struct inode *inode, unsigned long idx,

info->alloced++;
spin_unlock(&info->lock);
clear_highpage(filepage);
flush_dcache_page(filepage);
SetPageUptodate(filepage);
}
Expand Down

0 comments on commit c2c5694

Please sign in to comment.