Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86813
b: refs/heads/master
c: bd845e3
h: refs/heads/master
i:
  86811: 6f26d25
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Mar 5, 2008
1 parent 7fd1cd2 commit 8949d97
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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: acc4988bcf38f9618886eaeb9802aeacc6978ec2
refs/heads/master: bd845e38c7a7251a95a8f2c38aa7fb87140b771d
4 changes: 2 additions & 2 deletions trunk/include/linux/memcontrol.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extern int mem_cgroup_cache_charge(struct page *page, struct mm_struct *mm,
gfp_t gfp_mask);
int task_in_mem_cgroup(struct task_struct *task, const struct mem_cgroup *mem);

#define vm_match_cgroup(mm, cgroup) \
#define mm_match_cgroup(mm, cgroup) \
((cgroup) == rcu_dereference((mm)->mem_cgroup))

extern int mem_cgroup_prepare_migration(struct page *page);
Expand Down Expand Up @@ -118,7 +118,7 @@ static inline int mem_cgroup_cache_charge(struct page *page,
return 0;
}

static inline int vm_match_cgroup(struct mm_struct *mm, struct mem_cgroup *mem)
static inline int mm_match_cgroup(struct mm_struct *mm, struct mem_cgroup *mem)
{
return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ int task_in_mem_cgroup(struct task_struct *task, const struct mem_cgroup *mem)
int ret;

task_lock(task);
ret = task->mm && vm_match_cgroup(task->mm, mem);
ret = task->mm && mm_match_cgroup(task->mm, mem);
task_unlock(task);
return ret;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ static int page_referenced_anon(struct page *page,
* counting on behalf of references from different
* cgroups
*/
if (mem_cont && !vm_match_cgroup(vma->vm_mm, mem_cont))
if (mem_cont && !mm_match_cgroup(vma->vm_mm, mem_cont))
continue;
referenced += page_referenced_one(page, vma, &mapcount);
if (!mapcount)
Expand Down Expand Up @@ -382,7 +382,7 @@ static int page_referenced_file(struct page *page,
* counting on behalf of references from different
* cgroups
*/
if (mem_cont && !vm_match_cgroup(vma->vm_mm, mem_cont))
if (mem_cont && !mm_match_cgroup(vma->vm_mm, mem_cont))
continue;
if ((vma->vm_flags & (VM_LOCKED|VM_MAYSHARE))
== (VM_LOCKED|VM_MAYSHARE)) {
Expand Down

0 comments on commit 8949d97

Please sign in to comment.