]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
thp: remove unnecessary set_recommended_min_free_kbytes
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Wed, 26 Sep 2012 01:33:24 +0000 (11:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 07:25:59 +0000 (17:25 +1000)
Since it is called in start_khugepaged

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c

index 7c7f35f882d59ee1b9bb6652b33f9954bb5aa1fd..6b176fe64b0730c535f9d90f08abcd5653969a75 100644 (file)
@@ -226,9 +226,6 @@ static ssize_t enabled_store(struct kobject *kobj,
                        ret = err;
        }
 
-       if (ret > 0 && khugepaged_enabled())
-               set_recommended_min_free_kbytes();
-
        return ret;
 }
 static struct kobj_attribute enabled_attr =
@@ -563,8 +560,6 @@ static int __init hugepage_init(void)
 
        start_khugepaged();
 
-       set_recommended_min_free_kbytes();
-
        return 0;
 out:
        hugepage_exit_sysfs(hugepage_kobj);