Lines Matching refs:huge
120 int huge;
502 * Definitions for "huge tmpfs": tmpfs mounted with the huge= option
505 * disables huge pages for the mount;
507 * enables huge pages for the mount;
509 * only allocate huge pages if the page will be fully within i_size,
512 * only allocate huge pages if requested with fadvise()/madvise();
525 * disables huge on shm_mnt and all mounts, for emergency use;
527 * enables huge on shm_mnt and all mounts, w/o needing option, for testing;
552 switch (SHMEM_SB(inode->i_sb)->huge) {
590 static const char *shmem_format_huge(int huge)
592 switch (huge) {
676 /* No huge page at the end of the file: nothing to split */
1467 * "force", drivers/gpu/drm/i915/gem/i915_gem_shmem.c gets huge pages,
1682 pgoff_t index, bool huge)
1690 huge = false;
1691 nr = huge ? HPAGE_PMD_NR : 1;
1697 if (huge)
2310 if (SHMEM_SB(sb)->huge == SHMEM_HUGE_NEVER)
3120 * info->fallocend is only relevant when huge pages might be
3878 fsparam_enum ("huge", Opt_huge, shmem_param_enums_huge),
3972 ctx->huge = result.uint_32;
3973 if (ctx->huge != SHMEM_HUGE_NEVER &&
4184 sbinfo->huge = ctx->huge;
4255 /* Rightly or wrongly, show huge mount option unmasked by shmem_huge */
4256 if (sbinfo->huge)
4257 seq_printf(seq, ",huge=%s", shmem_format_huge(sbinfo->huge));
4332 sbinfo->huge = ctx->huge;
4641 SHMEM_SB(shm_mnt->mnt_sb)->huge = shmem_huge;
4689 int huge;
4698 huge = shmem_parse_huge(tmp);
4699 if (huge == -EINVAL)
4702 huge != SHMEM_HUGE_NEVER && huge != SHMEM_HUGE_DENY)
4705 shmem_huge = huge;
4707 SHMEM_SB(shm_mnt->mnt_sb)->huge = shmem_huge;