| /fs/bcachefs/ |
| A D | opts.c | 322 if (!strcmp(opt, i->opt) && !strcmp(val, i->v1)) in bch2_opt_val_synonym_lookup() 333 opt->attr.name, opt->min); in bch2_opt_validate() 337 if (opt->max && v >= opt->max) { in bch2_opt_validate() 340 opt->attr.name, opt->max); in bch2_opt_validate() 477 if (v < opt->min || v >= opt->max) in bch2_opt_to_text() 506 if ((opt->flags & hide_mask) || !(opt->flags & show_mask)) in bch2_opts_to_text() 707 if (!*opt) in bch2_parse_mount_opts() 711 val = opt; in bch2_parse_mount_opts() 764 if (opt->get_sb) in bch2_opts_from_sb() 785 if ((opt->flags & OPT_FS) && opt->set_sb && dev_idx < 0) { in __bch2_opt_set_sb() [all …]
|
| A D | compress.h | 28 struct bch_compression_opt opt = __bch2_compression_decode(v); in bch2_compression_opt_valid() local 30 return opt.type < ARRAY_SIZE(__bch2_compression_opt_to_type) && !(!opt.type && opt.level); in bch2_compression_opt_valid() 40 static inline unsigned bch2_compression_encode(struct bch_compression_opt opt) in bch2_compression_encode() argument 42 return opt.type|(opt.level << 4); in bch2_compression_encode()
|
| A D | compress.c | 183 mempool_t *workspace_pool = &c->compress_workspace[opt]; in __bio_uncompress() 188 ret = bch2_check_set_has_compressed_data(c, opt); in __bio_uncompress() 706 struct bch_compression_opt opt = { 0 }; in bch2_opt_compression_parse() local 721 opt.type = ret; in bch2_opt_compression_parse() 727 if (!ret && !opt.type && level) in bch2_opt_compression_parse() 736 opt.level = level; in bch2_opt_compression_parse() 739 *res = bch2_compression_encode(opt); in bch2_opt_compression_parse() 749 if (opt.type < BCH_COMPRESSION_OPT_NR) in bch2_compression_opt_to_text() 750 prt_str(out, bch2_compression_opts[opt.type]); in bch2_compression_opt_to_text() 753 if (opt.level) in bch2_compression_opt_to_text() [all …]
|
| A D | sysfs.c | 630 const struct bch_option *opt = bch2_opt_table + id; in sysfs_opt_show() local 633 if (opt->flags & OPT_FS) { in sysfs_opt_show() 635 } else if ((opt->flags & OPT_DEVICE) && opt->get_member) { in sysfs_opt_show() 641 bch2_opt_to_text(out, c, c->disk_sb.sb, opt, v, OPT_SHOW_FULL_LIST); in sysfs_opt_show() 651 const struct bch_option *opt = bch2_opt_table + id; in sysfs_opt_store() local 668 ret = bch2_opt_parse(c, opt, strim(tmp), &v, NULL) ?: in sysfs_opt_store() 675 bool is_sb = opt->get_sb || opt->get_member; in sysfs_opt_store() 679 changed = bch2_opt_set_sb(c, ca, opt, v); in sysfs_opt_store()
|
| /fs/isofs/ |
| A D | inode.c | 346 int opt; in isofs_parse_param() local 354 if (opt < 0) in isofs_parse_param() 355 return opt; in isofs_parse_param() 357 switch (opt) { in isofs_parse_param() 612 opt->blocksize = sb_min_blocksize(s, opt->blocksize); in isofs_fill_super() 619 opt->sbsector : isofs_get_last_session(s, opt->session); in isofs_fill_super() 1541 kfree(opt); in isofs_free_fc() 1555 opt = kzalloc(sizeof(*opt), GFP_KERNEL); in isofs_init_fs_context() 1556 if (!opt) in isofs_init_fs_context() 1560 opt->rock = 1; in isofs_init_fs_context() [all …]
|
| /fs/erofs/ |
| A D | super.c | 372 set_opt(&sbi->opt, XATTR_USER); in erofs_default_options() 375 set_opt(&sbi->opt, POSIX_ACL); in erofs_default_options() 423 set_opt(&sbi->opt, DAX_NEVER); in erofs_fc_set_dax_mode() 442 int opt, ret; in erofs_fc_parse_param() local 445 if (opt < 0) in erofs_fc_parse_param() 446 return opt; in erofs_fc_parse_param() 448 switch (opt) { in erofs_fc_parse_param() 789 sbi->opt = new_sbi->opt; in erofs_fc_reconfigure() 994 struct erofs_mount_opts *opt = &sbi->opt; in erofs_show_options() local 1004 if (test_opt(opt, DAX_ALWAYS)) in erofs_show_options() [all …]
|
| A D | internal.h | 110 struct erofs_mount_opts opt; /* options */ member 181 #define clear_opt(opt, option) ((opt)->mount_opt &= ~EROFS_MOUNT_##option) argument 182 #define set_opt(opt, option) ((opt)->mount_opt |= EROFS_MOUNT_##option) argument 183 #define test_opt(opt, option) ((opt)->mount_opt & EROFS_MOUNT_##option) argument
|
| /fs/btrfs/ |
| A D | fs.h | 1038 #define btrfs_set_fs_incompat(__fs_info, opt) \ argument 1039 __btrfs_set_fs_incompat((__fs_info), BTRFS_FEATURE_INCOMPAT_##opt, #opt) 1042 __btrfs_clear_fs_incompat((__fs_info), BTRFS_FEATURE_INCOMPAT_##opt, #opt) 1044 #define btrfs_fs_incompat(fs_info, opt) \ argument 1048 __btrfs_set_fs_compat_ro((__fs_info), BTRFS_FEATURE_COMPAT_RO_##opt, #opt) 1051 __btrfs_clear_fs_compat_ro((__fs_info), BTRFS_FEATURE_COMPAT_RO_##opt, #opt) 1053 #define btrfs_fs_compat_ro(fs_info, opt) \ argument 1056 #define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt) argument 1057 #define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt) argument 1058 #define btrfs_raw_test_opt(o, opt) ((o) & BTRFS_MOUNT_##opt) argument [all …]
|
| A D | super.c | 276 const struct fs_parameter *param, int opt) in btrfs_parse_compress() argument 286 if (opt != Opt_compress_force && opt != Opt_compress_force_type) in btrfs_parse_compress() 289 if (opt == Opt_compress || opt == Opt_compress_force) { in btrfs_parse_compress() 332 int opt; in btrfs_parse_param() local 335 if (opt < 0) in btrfs_parse_param() 336 return opt; in btrfs_parse_param() 338 switch (opt) { in btrfs_parse_param() 396 if (btrfs_parse_compress(ctx, param, opt)) in btrfs_parse_param() 665 if (mount_opt & opt) { in check_ro_option() 1426 btrfs_raw_test_opt(fs_info->mount_opt, opt)) \ [all …]
|
| /fs/ramfs/ |
| A D | inode.c | 235 int opt; in ramfs_parse_param() local 237 opt = fs_parse(fc, ramfs_fs_parameters, param, &result); in ramfs_parse_param() 238 if (opt == -ENOPARAM) { in ramfs_parse_param() 239 opt = vfs_parse_fs_param_source(fc, param); in ramfs_parse_param() 240 if (opt != -ENOPARAM) in ramfs_parse_param() 241 return opt; in ramfs_parse_param() 250 if (opt < 0) in ramfs_parse_param() 251 return opt; in ramfs_parse_param() 253 switch (opt) { in ramfs_parse_param()
|
| /fs/qnx6/ |
| A D | qnx6.h | 69 #define clear_opt(o, opt) (o &= ~(QNX6_MOUNT_##opt)) argument 70 #define set_opt(o, opt) (o |= (QNX6_MOUNT_##opt)) argument 71 #define test_opt(sb, opt) (QNX6_SB(sb)->s_mount_opt & \ argument 72 QNX6_MOUNT_##opt)
|
| /fs/hfsplus/ |
| A D | options.c | 66 int opt; in hfsplus_parse_param() local 76 opt = fs_parse(fc, hfs_param_spec, param, &result); in hfsplus_parse_param() 77 if (opt < 0) in hfsplus_parse_param() 78 return opt; in hfsplus_parse_param() 80 switch (opt) { in hfsplus_parse_param()
|
| /fs/nilfs2/ |
| A D | the_nilfs.h | 211 #define nilfs_clear_opt(nilfs, opt) \ argument 212 ((nilfs)->ns_mount_opt &= ~NILFS_MOUNT_##opt) 213 #define nilfs_set_opt(nilfs, opt) \ argument 214 ((nilfs)->ns_mount_opt |= NILFS_MOUNT_##opt) 215 #define nilfs_test_opt(nilfs, opt) ((nilfs)->ns_mount_opt & NILFS_MOUNT_##opt) argument
|
| /fs/proc/ |
| A D | root.c | 116 int opt; in proc_parse_param() local 118 opt = fs_parse(fc, proc_fs_parameters, param, &result); in proc_parse_param() 119 if (opt < 0) in proc_parse_param() 120 return opt; in proc_parse_param() 122 switch (opt) { in proc_parse_param() 141 ctx->mask |= 1 << opt; in proc_parse_param()
|
| /fs/affs/ |
| A D | affs.h | 122 #define affs_clear_opt(o, opt) (o &= ~AFFS_MOUNT_##opt) argument 123 #define affs_set_opt(o, opt) (o |= AFFS_MOUNT_##opt) argument 124 #define affs_test_opt(o, opt) ((o) & AFFS_MOUNT_##opt) argument
|
| /fs/jffs2/ |
| A D | super.c | 193 int opt; in jffs2_parse_param() local 195 opt = fs_parse(fc, jffs2_fs_parameters, param, &result); in jffs2_parse_param() 196 if (opt < 0) in jffs2_parse_param() 197 return opt; in jffs2_parse_param() 199 switch (opt) { in jffs2_parse_param()
|
| /fs/coda/ |
| A D | inode.c | 162 int opt; in coda_parse_param() local 164 opt = fs_parse(fc, coda_param_specs, param, &result); in coda_parse_param() 165 if (opt < 0) in coda_parse_param() 166 return opt; in coda_parse_param() 168 switch (opt) { in coda_parse_param()
|
| /fs/debugfs/ |
| A D | inode.c | 107 int opt; in debugfs_parse_param() local 109 opt = fs_parse(fc, debugfs_param_specs, param, &result); in debugfs_parse_param() 110 if (opt < 0) { in debugfs_parse_param() 115 if (opt == -ENOPARAM) in debugfs_parse_param() 118 return opt; in debugfs_parse_param() 121 switch (opt) { in debugfs_parse_param() 143 opts->opts |= BIT(opt); in debugfs_parse_param()
|
| /fs/vboxsf/ |
| A D | super.c | 58 int opt; in vboxsf_parse_param() local 60 opt = fs_parse(fc, vboxsf_fs_parameters, param, &result); in vboxsf_parse_param() 61 if (opt < 0) in vboxsf_parse_param() 62 return opt; in vboxsf_parse_param() 64 switch (opt) { in vboxsf_parse_param()
|
| /fs/autofs/ |
| A D | inode.c | 197 int opt; in autofs_parse_param() local 199 opt = fs_parse(fc, autofs_param_specs, param, &result); in autofs_parse_param() 200 if (opt < 0) in autofs_parse_param() 201 return opt; in autofs_parse_param() 203 switch (opt) { in autofs_parse_param()
|
| /fs/hfs/ |
| A D | super.c | 221 int opt; in hfs_parse_param() local 227 opt = fs_parse(fc, hfs_param_spec, param, &result); in hfs_parse_param() 228 if (opt < 0) in hfs_parse_param() 229 return opt; in hfs_parse_param() 231 switch (opt) { in hfs_parse_param()
|
| /fs/adfs/ |
| A D | super.c | 134 int opt; in adfs_parse_param() local 136 opt = fs_parse(fc, adfs_param_spec, param, &result); in adfs_parse_param() 137 if (opt < 0) in adfs_parse_param() 138 return opt; in adfs_parse_param() 140 switch (opt) { in adfs_parse_param()
|
| /fs/efivarfs/ |
| A D | super.c | 320 int opt; in efivarfs_parse_param() local 322 opt = fs_parse(fc, efivarfs_parameters, param, &result); in efivarfs_parse_param() 323 if (opt < 0) in efivarfs_parse_param() 324 return opt; in efivarfs_parse_param() 326 switch (opt) { in efivarfs_parse_param()
|
| /fs/ext2/ |
| A D | ext2.h | 384 #define clear_opt(o, opt) o &= ~EXT2_MOUNT_##opt argument 385 #define set_opt(o, opt) o |= EXT2_MOUNT_##opt argument 386 #define test_opt(sb, opt) (EXT2_SB(sb)->s_mount_opt & \ argument 387 EXT2_MOUNT_##opt)
|
| /fs/devpts/ |
| A D | inode.c | 226 int opt; in devpts_parse_param() local 228 opt = fs_parse(fc, devpts_param_specs, param, &result); in devpts_parse_param() 229 if (opt < 0) in devpts_parse_param() 230 return opt; in devpts_parse_param() 232 switch (opt) { in devpts_parse_param()
|