Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118919
b: refs/heads/master
c: 33c5d3d
h: refs/heads/master
i:
  118917: f4367e0
  118915: 2a1c3a7
  118911: ab1561f
v: v3
  • Loading branch information
KAMEZAWA Hiroyuki authored and Linus Torvalds committed Nov 13, 2008
1 parent d7b50fe commit 282683d
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 6cdfcc275e40b89fb020da1088ead86a61d33115
refs/heads/master: 33c5d3d64589c5d379db5a5615735f6d08438369
4 changes: 2 additions & 2 deletions trunk/mm/page_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
Expand Down

0 comments on commit 282683d

Please sign in to comment.