Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127558
b: refs/heads/master
c: 0753b0e
h: refs/heads/master
v: v3
  • Loading branch information
Fernando Luis Vazquez Cao authored and Linus Torvalds committed Jan 8, 2009
1 parent 9862953 commit 2317cf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 01b1ae63c2270cbacfd43fea94578c17950eb548
refs/heads/master: 0753b0ef3b301895234fed02bea2c099c7ff4feb
5 changes: 1 addition & 4 deletions trunk/mm/page_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,11 @@ struct page_cgroup *lookup_page_cgroup(struct page *page)
/* __alloc_bootmem...() is protected by !slab_available() */
static int __init_refok init_section_page_cgroup(unsigned long pfn)
{
struct mem_section *section;
struct mem_section *section = __pfn_to_section(pfn);
struct page_cgroup *base, *pc;
unsigned long table_size;
int nid, index;

section = __pfn_to_section(pfn);

if (!section->page_cgroup) {
nid = page_to_nid(pfn_to_page(pfn));
table_size = sizeof(struct page_cgroup) * PAGES_PER_SECTION;
Expand Down Expand Up @@ -145,7 +143,6 @@ static int __init_refok init_section_page_cgroup(unsigned long pfn)
__init_page_cgroup(pc, pfn + index);
}

section = __pfn_to_section(pfn);
section->page_cgroup = base - pfn;
total_usage += table_size;
return 0;
Expand Down

0 comments on commit 2317cf8

Please sign in to comment.