Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308841
b: refs/heads/master
c: 096a7cf
h: refs/heads/master
i:
  308839: 1e0216a
v: v3
  • Loading branch information
Ying Han authored and Linus Torvalds committed May 29, 2012
1 parent e0f5c41 commit 1d40567
Show file tree
Hide file tree
Showing 3 changed files with 5 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: c3ac9a8ade65ccbfd145fbff895ae8d8d62d09b0
refs/heads/master: 096a7cf44712ab531101bb4689f75f7fcd9b9f18
5 changes: 3 additions & 2 deletions trunk/mm/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ static inline void munlock_vma_pages_all(struct vm_area_struct *vma)
* to determine if it's being mapped into a LOCKED vma.
* If so, mark page as mlocked.
*/
static inline int is_mlocked_vma(struct vm_area_struct *vma, struct page *page)
static inline int mlocked_vma_newpage(struct vm_area_struct *vma,
struct page *page)
{
VM_BUG_ON(PageLRU(page));

Expand Down Expand Up @@ -222,7 +223,7 @@ extern unsigned long vma_address(struct page *page,
struct vm_area_struct *vma);
#endif
#else /* !CONFIG_MMU */
static inline int is_mlocked_vma(struct vm_area_struct *v, struct page *p)
static inline int mlocked_vma_newpage(struct vm_area_struct *v, struct page *p)
{
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -3321,7 +3321,7 @@ int page_evictable(struct page *page, struct vm_area_struct *vma)
if (mapping_unevictable(page_mapping(page)))
return 0;

if (PageMlocked(page) || (vma && is_mlocked_vma(vma, page)))
if (PageMlocked(page) || (vma && mlocked_vma_newpage(vma, page)))
return 0;

return 1;
Expand Down

0 comments on commit 1d40567

Please sign in to comment.