Lines Matching refs:max_blocks
244 if (sbinfo->max_blocks) in shmem_recalc_inode()
1182 if (sbinfo->max_blocks) { in shmem_getpage_gfp()
1184 sbinfo->max_blocks) >= 0) { in shmem_getpage_gfp()
1265 if (sbinfo->max_blocks) in shmem_getpage_gfp()
2126 if (sbinfo->max_blocks && end - start > sbinfo->max_blocks) { in shmem_fallocate()
2202 if (sbinfo->max_blocks) { in shmem_statfs()
2203 buf->f_blocks = sbinfo->max_blocks; in shmem_statfs()
2205 buf->f_bfree = sbinfo->max_blocks - in shmem_statfs()
2794 sbinfo->max_blocks = in shmem_parse_options()
2797 sbinfo->max_blocks = memparse(value, &rest); in shmem_parse_options()
2864 if (percpu_counter_compare(&sbinfo->used_blocks, config.max_blocks) > 0) in shmem_remount_fs()
2873 if (config.max_blocks && !sbinfo->max_blocks) in shmem_remount_fs()
2879 sbinfo->max_blocks = config.max_blocks; in shmem_remount_fs()
2899 if (sbinfo->max_blocks != shmem_default_max_blocks()) in shmem_show_options()
2901 sbinfo->max_blocks << (PAGE_CACHE_SHIFT - 10)); in shmem_show_options()
3022 sbinfo->max_blocks = shmem_default_max_blocks(); in shmem_fill_super()