aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 6540e5982444..fbcb3c96a186 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -3967,7 +3967,7 @@ int __init shmem_init(void)
3967 } 3967 }
3968 3968
3969#ifdef CONFIG_TRANSPARENT_HUGE_PAGECACHE 3969#ifdef CONFIG_TRANSPARENT_HUGE_PAGECACHE
3970 if (has_transparent_hugepage() && shmem_huge < SHMEM_HUGE_DENY) 3970 if (has_transparent_hugepage() && shmem_huge > SHMEM_HUGE_DENY)
3971 SHMEM_SB(shm_mnt->mnt_sb)->huge = shmem_huge; 3971 SHMEM_SB(shm_mnt->mnt_sb)->huge = shmem_huge;
3972 else 3972 else
3973 shmem_huge = 0; /* just in case it was patched */ 3973 shmem_huge = 0; /* just in case it was patched */
@@ -4028,7 +4028,7 @@ static ssize_t shmem_enabled_store(struct kobject *kobj,
4028 return -EINVAL; 4028 return -EINVAL;
4029 4029
4030 shmem_huge = huge; 4030 shmem_huge = huge;
4031 if (shmem_huge < SHMEM_HUGE_DENY) 4031 if (shmem_huge > SHMEM_HUGE_DENY)
4032 SHMEM_SB(shm_mnt->mnt_sb)->huge = shmem_huge; 4032 SHMEM_SB(shm_mnt->mnt_sb)->huge = shmem_huge;
4033 return count; 4033 return count;
4034} 4034}