• Home
  • Raw
  • Download

Lines Matching refs:ctx

787 					struct hugetlbfs_fs_context *ctx)  in hugetlbfs_get_root()  argument
794 inode->i_mode = S_IFDIR | ctx->mode; in hugetlbfs_get_root()
795 inode->i_uid = ctx->uid; in hugetlbfs_get_root()
796 inode->i_gid = ctx->gid; in hugetlbfs_get_root()
1206 struct hugetlbfs_fs_context *ctx = fc->fs_private; in hugetlbfs_parse_param() local
1219 ctx->uid = make_kuid(current_user_ns(), result.uint_32); in hugetlbfs_parse_param()
1220 if (!uid_valid(ctx->uid)) in hugetlbfs_parse_param()
1225 ctx->gid = make_kgid(current_user_ns(), result.uint_32); in hugetlbfs_parse_param()
1226 if (!gid_valid(ctx->gid)) in hugetlbfs_parse_param()
1231 ctx->mode = result.uint_32 & 01777U; in hugetlbfs_parse_param()
1238 ctx->max_size_opt = memparse(param->string, &rest); in hugetlbfs_parse_param()
1239 ctx->max_val_type = SIZE_STD; in hugetlbfs_parse_param()
1241 ctx->max_val_type = SIZE_PERCENT; in hugetlbfs_parse_param()
1248 ctx->nr_inodes = memparse(param->string, &rest); in hugetlbfs_parse_param()
1258 ctx->hstate = h; in hugetlbfs_parse_param()
1265 ctx->min_size_opt = memparse(param->string, &rest); in hugetlbfs_parse_param()
1266 ctx->min_val_type = SIZE_STD; in hugetlbfs_parse_param()
1268 ctx->min_val_type = SIZE_PERCENT; in hugetlbfs_parse_param()
1285 struct hugetlbfs_fs_context *ctx = fc->fs_private; in hugetlbfs_validate() local
1291 ctx->max_hpages = hugetlbfs_size_to_hpages(ctx->hstate, in hugetlbfs_validate()
1292 ctx->max_size_opt, in hugetlbfs_validate()
1293 ctx->max_val_type); in hugetlbfs_validate()
1294 ctx->min_hpages = hugetlbfs_size_to_hpages(ctx->hstate, in hugetlbfs_validate()
1295 ctx->min_size_opt, in hugetlbfs_validate()
1296 ctx->min_val_type); in hugetlbfs_validate()
1301 if (ctx->max_val_type > NO_SIZE && in hugetlbfs_validate()
1302 ctx->min_hpages > ctx->max_hpages) { in hugetlbfs_validate()
1313 struct hugetlbfs_fs_context *ctx = fc->fs_private; in hugetlbfs_fill_super() local
1321 sbinfo->hstate = ctx->hstate; in hugetlbfs_fill_super()
1322 sbinfo->max_inodes = ctx->nr_inodes; in hugetlbfs_fill_super()
1323 sbinfo->free_inodes = ctx->nr_inodes; in hugetlbfs_fill_super()
1325 sbinfo->uid = ctx->uid; in hugetlbfs_fill_super()
1326 sbinfo->gid = ctx->gid; in hugetlbfs_fill_super()
1327 sbinfo->mode = ctx->mode; in hugetlbfs_fill_super()
1334 if (ctx->max_hpages != -1 || ctx->min_hpages != -1) { in hugetlbfs_fill_super()
1335 sbinfo->spool = hugepage_new_subpool(ctx->hstate, in hugetlbfs_fill_super()
1336 ctx->max_hpages, in hugetlbfs_fill_super()
1337 ctx->min_hpages); in hugetlbfs_fill_super()
1342 sb->s_blocksize = huge_page_size(ctx->hstate); in hugetlbfs_fill_super()
1343 sb->s_blocksize_bits = huge_page_shift(ctx->hstate); in hugetlbfs_fill_super()
1353 sb->s_root = d_make_root(hugetlbfs_get_root(sb, ctx)); in hugetlbfs_fill_super()
1384 struct hugetlbfs_fs_context *ctx; in hugetlbfs_init_fs_context() local
1386 ctx = kzalloc(sizeof(struct hugetlbfs_fs_context), GFP_KERNEL); in hugetlbfs_init_fs_context()
1387 if (!ctx) in hugetlbfs_init_fs_context()
1390 ctx->max_hpages = -1; /* No limit on size by default */ in hugetlbfs_init_fs_context()
1391 ctx->nr_inodes = -1; /* No limit on number of inodes by default */ in hugetlbfs_init_fs_context()
1392 ctx->uid = current_fsuid(); in hugetlbfs_init_fs_context()
1393 ctx->gid = current_fsgid(); in hugetlbfs_init_fs_context()
1394 ctx->mode = 0755; in hugetlbfs_init_fs_context()
1395 ctx->hstate = &default_hstate; in hugetlbfs_init_fs_context()
1396 ctx->min_hpages = -1; /* No default minimum size */ in hugetlbfs_init_fs_context()
1397 ctx->max_val_type = NO_SIZE; in hugetlbfs_init_fs_context()
1398 ctx->min_val_type = NO_SIZE; in hugetlbfs_init_fs_context()
1399 fc->fs_private = ctx; in hugetlbfs_init_fs_context()
1502 struct hugetlbfs_fs_context *ctx = fc->fs_private; in mount_one_hugetlbfs() local
1503 ctx->hstate = h; in mount_one_hugetlbfs()