Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332372
b: refs/heads/master
c: 17c230a
h: refs/heads/master
v: v3
  • Loading branch information
Xiao Guangrong authored and Linus Torvalds committed Oct 9, 2012
1 parent 2b4226c commit 7c1d33d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: b7231789b0224e73af4efc7973f8bcf17fc16edd
refs/heads/master: 17c230afa58a6d013a4949d5c04b823a281d40fa
11 changes: 2 additions & 9 deletions trunk/mm/huge_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ static int set_recommended_min_free_kbytes(void)
unsigned long recommended_min;
extern int min_free_kbytes;

if (!test_bit(TRANSPARENT_HUGEPAGE_FLAG,
&transparent_hugepage_flags) &&
!test_bit(TRANSPARENT_HUGEPAGE_REQ_MADV_FLAG,
&transparent_hugepage_flags))
if (!khugepaged_enabled())
return 0;

for_each_populated_zone(zone)
Expand Down Expand Up @@ -228,11 +225,7 @@ static ssize_t enabled_store(struct kobject *kobj,
ret = err;
}

if (ret > 0 &&
(test_bit(TRANSPARENT_HUGEPAGE_FLAG,
&transparent_hugepage_flags) ||
test_bit(TRANSPARENT_HUGEPAGE_REQ_MADV_FLAG,
&transparent_hugepage_flags)))
if (ret > 0 && khugepaged_enabled())
set_recommended_min_free_kbytes();

return ret;
Expand Down

0 comments on commit 7c1d33d

Please sign in to comment.