From 282683d704b85a987a82d91271c64eaa3057921d Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki Date: Wed, 12 Nov 2008 13:27:01 -0800 Subject: [PATCH] --- yaml --- r: 118919 b: refs/heads/master c: 33c5d3d64589c5d379db5a5615735f6d08438369 h: refs/heads/master i: 118917: f4367e05e9cbd655f590ffbc17b22e3e4dee7db8 118915: 2a1c3a753ebf75e130e77f1abe67f255e4efe480 118911: ab1561f23867c4a538c4aeaa11b7d01bd678eeaf v: v3 --- [refs] | 2 +- trunk/mm/page_cgroup.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index ca50d79598be..b021b11dc6dc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6cdfcc275e40b89fb020da1088ead86a61d33115 +refs/heads/master: 33c5d3d64589c5d379db5a5615735f6d08438369 diff --git a/trunk/mm/page_cgroup.c b/trunk/mm/page_cgroup.c index f59d797dc5a9..1223d927904d 100644 --- a/trunk/mm/page_cgroup.c +++ b/trunk/mm/page_cgroup.c @@ -165,7 +165,7 @@ int online_page_cgroup(unsigned long start_pfn, unsigned long start, end, pfn; int fail = 0; - start = start_pfn & (PAGES_PER_SECTION - 1); + start = start_pfn & ~(PAGES_PER_SECTION - 1); end = ALIGN(start_pfn + nr_pages, PAGES_PER_SECTION); for (pfn = start; !fail && pfn < end; pfn += PAGES_PER_SECTION) { @@ -188,7 +188,7 @@ int offline_page_cgroup(unsigned long start_pfn, { unsigned long start, end, pfn; - start = start_pfn & (PAGES_PER_SECTION - 1); + start = start_pfn & ~(PAGES_PER_SECTION - 1); end = ALIGN(start_pfn + nr_pages, PAGES_PER_SECTION); for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION)