Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332367
b: refs/heads/master
c: 9817626
h: refs/heads/master
i:
  332365: 2bae67a
  332363: ff53c98
  332359: 3fcec94
  332351: a62a70c
v: v3
  • Loading branch information
Xiao Guangrong authored and Linus Torvalds committed Oct 9, 2012
1 parent 403edab commit 50222e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: 2017c0bff8ba79ea527361adbe19471e174775d6
refs/heads/master: 9817626e722a5e5699cf38f5d3a4c9851e054436
10 changes: 3 additions & 7 deletions trunk/mm/huge_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -2306,11 +2306,8 @@ static void khugepaged_wait_work(void)

static void khugepaged_loop(void)
{
struct page *hpage;
struct page *hpage = NULL;

#ifdef CONFIG_NUMA
hpage = NULL;
#endif
while (likely(khugepaged_enabled())) {
#ifndef CONFIG_NUMA
hpage = khugepaged_alloc_hugepage();
Expand All @@ -2324,10 +2321,9 @@ static void khugepaged_loop(void)
#endif

khugepaged_do_scan(&hpage);
#ifndef CONFIG_NUMA
if (hpage)

if (!IS_ERR_OR_NULL(hpage))
put_page(hpage);
#endif

khugepaged_wait_work();
}
Expand Down

0 comments on commit 50222e5

Please sign in to comment.