shmem: fix tmpfs to handle the huge= option properly
[deliverable/linux.git] / mm / shmem.c
index fd8b2b5741b141a7bc4457d93929c100d988a639..aec5b492d94754de80033942be8a6d1197013e03 100644 (file)
@@ -1980,7 +1980,7 @@ unsigned long shmem_get_unmapped_area(struct file *file,
                                return addr;
                        sb = shm_mnt->mnt_sb;
                }
-               if (SHMEM_SB(sb)->huge != SHMEM_HUGE_NEVER)
+               if (SHMEM_SB(sb)->huge == SHMEM_HUGE_NEVER)
                        return addr;
        }
 
This page took 0.033419 seconds and 5 git commands to generate.