Lines Matching refs:huge
118 int huge;
443 * Definitions for "huge tmpfs": tmpfs mounted with the huge= option
446 * disables huge pages for the mount;
448 * enables huge pages for the mount;
450 * only allocate huge pages if the page will be fully within i_size,
453 * only allocate huge pages if requested with fadvise()/madvise();
466 * disables huge on shm_mnt and all mounts, for emergency use;
468 * enables huge on shm_mnt and all mounts, w/o needing option, for testing;
499 static const char *shmem_format_huge(int huge)
501 switch (huge) {
584 /* No huge page at the end of the file: nothing to split */
663 (shmem_huge == SHMEM_HUGE_FORCE || sbinfo->huge) &&
875 * Check whether a hole-punch or truncation needs to split a huge page,
878 * Eviction (or truncation to 0 size) should never need to split a huge page;
883 * huge page: so the split below relies upon find_get_entries() having stopped
884 * when it found a subpage of the huge page, without getting further references.
891 /* Just proceed to delete a huge page wholly within the range punched */
896 /* Try to split huge page, so we can truly punch the hole or truncate */
1130 * Part of the huge page can be beyond i_size: subject
1578 pgoff_t index, bool huge)
1586 huge = false;
1587 nr = huge ? HPAGE_PMD_NR : 1;
1592 if (huge)
1872 switch (sbinfo->huge) {
1909 * Try to reclaim some space by splitting a huge page
1950 * Part of the huge page is beyond i_size: subject
2183 if (SHMEM_SB(sb)->huge == SHMEM_HUGE_NEVER)
3439 fsparam_enum ("huge", Opt_huge, shmem_param_enums_huge),
3523 ctx->huge = result.uint_32;
3524 if (ctx->huge != SHMEM_HUGE_NEVER &&
3649 sbinfo->huge = ctx->huge;
3715 /* Rightly or wrongly, show huge mount option unmasked by shmem_huge */
3716 if (sbinfo->huge)
3717 seq_printf(seq, ",huge=%s", shmem_format_huge(sbinfo->huge));
3783 sbinfo->huge = ctx->huge;
4032 SHMEM_SB(shm_mnt->mnt_sb)->huge = shmem_huge;
4074 int huge;
4083 huge = shmem_parse_huge(tmp);
4084 if (huge == -EINVAL)
4087 huge != SHMEM_HUGE_NEVER && huge != SHMEM_HUGE_DENY)
4090 shmem_huge = huge;
4092 SHMEM_SB(shm_mnt->mnt_sb)->huge = shmem_huge;
4114 switch (sbinfo->huge) {