Re: [RFC][PATCH -mm 6/7] memcg: make-mapping-null-before-calling-uncharge.patch
- From: Daisuke Nishimura <nishimura@xxxxxxxxxxxxxxxxx>
- Date: Fri, 22 Aug 2008 13:57:43 +0900
@@ -379,6 +377,15 @@ static void migrate_page_copy(struct pagYou forget to remove this line :)
ClearPagePrivate(page);
set_page_private(page, 0);
page->mapping = NULL;
Thanks,
Daisuke Nishimura.
+ /* page->mapping contains a flag for PageAnon() */--
+ if (PageAnon(page)) {
+ /* This page is uncharged at try_to_unmap(). */
+ page->mapping = NULL;
+ } else {
+ /* Obsolete file cache should be uncharged */
+ page->mapping = NULL;
+ mem_cgroup_uncharge_cache_page(page);
+ }
/*
* If any waiters have accumulated on the new page then
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [RFC][PATCH -mm 6/7] memcg: make-mapping-null-before-calling-uncharge.patch
- From: KAMEZAWA Hiroyuki
- Re: [RFC][PATCH -mm 6/7] memcg: make-mapping-null-before-calling-uncharge.patch
- References:
- [PATCH -mm][preview] memcg: a patch series for next [0/9]
- From: KAMEZAWA Hiroyuki
- [RFC][PATCH -mm 0/7] memcg: lockless page_cgroup v1
- From: KAMEZAWA Hiroyuki
- [RFC][PATCH -mm 6/7] memcg: make-mapping-null-before-calling-uncharge.patch
- From: KAMEZAWA Hiroyuki
- [PATCH -mm][preview] memcg: a patch series for next [0/9]
- Prev by Date: Re: [Bug 11388] New: 2.6.27-rc3 warns about MTRR range; only 3 of 16gb of memory is usable
- Next by Date: Re: [PATCH] x86: fix probe_nr_irqs for xen
- Previous by thread: [RFC][PATCH -mm 6/7] memcg: make-mapping-null-before-calling-uncharge.patch
- Next by thread: Re: [RFC][PATCH -mm 6/7] memcg: make-mapping-null-before-calling-uncharge.patch
- Index(es):
Relevant Pages
|