Lines Matching defs:mount_opt

84 	unsigned long mount_opt;
278 btrfs_set_opt(ctx->mount_opt, DEGRADED);
313 btrfs_set_opt(ctx->mount_opt, NODATASUM);
315 btrfs_clear_opt(ctx->mount_opt, NODATACOW);
316 btrfs_clear_opt(ctx->mount_opt, NODATASUM);
321 btrfs_clear_opt(ctx->mount_opt, COMPRESS);
322 btrfs_clear_opt(ctx->mount_opt, FORCE_COMPRESS);
323 btrfs_set_opt(ctx->mount_opt, NODATACOW);
324 btrfs_set_opt(ctx->mount_opt, NODATASUM);
326 btrfs_clear_opt(ctx->mount_opt, NODATACOW);
331 btrfs_set_opt(ctx->mount_opt, FORCE_COMPRESS);
338 btrfs_set_opt(ctx->mount_opt, COMPRESS);
339 btrfs_clear_opt(ctx->mount_opt, NODATACOW);
340 btrfs_clear_opt(ctx->mount_opt, NODATASUM);
346 btrfs_set_opt(ctx->mount_opt, COMPRESS);
347 btrfs_clear_opt(ctx->mount_opt, NODATACOW);
348 btrfs_clear_opt(ctx->mount_opt, NODATASUM);
352 btrfs_set_opt(ctx->mount_opt, COMPRESS);
353 btrfs_clear_opt(ctx->mount_opt, NODATACOW);
354 btrfs_clear_opt(ctx->mount_opt, NODATASUM);
360 btrfs_set_opt(ctx->mount_opt, COMPRESS);
361 btrfs_clear_opt(ctx->mount_opt, NODATACOW);
362 btrfs_clear_opt(ctx->mount_opt, NODATASUM);
366 btrfs_clear_opt(ctx->mount_opt, COMPRESS);
367 btrfs_clear_opt(ctx->mount_opt, FORCE_COMPRESS);
376 btrfs_set_opt(ctx->mount_opt, NOSSD);
377 btrfs_clear_opt(ctx->mount_opt, SSD);
378 btrfs_clear_opt(ctx->mount_opt, SSD_SPREAD);
380 btrfs_set_opt(ctx->mount_opt, SSD);
381 btrfs_clear_opt(ctx->mount_opt, NOSSD);
386 btrfs_clear_opt(ctx->mount_opt, SSD_SPREAD);
388 btrfs_set_opt(ctx->mount_opt, SSD);
389 btrfs_set_opt(ctx->mount_opt, SSD_SPREAD);
390 btrfs_clear_opt(ctx->mount_opt, NOSSD);
395 btrfs_set_opt(ctx->mount_opt, NOBARRIER);
397 btrfs_clear_opt(ctx->mount_opt, NOBARRIER);
432 btrfs_set_opt(ctx->mount_opt, NOTREELOG);
434 btrfs_clear_opt(ctx->mount_opt, NOTREELOG);
439 btrfs_set_opt(ctx->mount_opt, NOLOGREPLAY);
443 btrfs_clear_opt(ctx->mount_opt, FLUSHONCOMMIT);
445 btrfs_set_opt(ctx->mount_opt, FLUSHONCOMMIT);
452 btrfs_clear_opt(ctx->mount_opt, DISCARD_SYNC);
453 btrfs_clear_opt(ctx->mount_opt, DISCARD_ASYNC);
454 btrfs_set_opt(ctx->mount_opt, NODISCARD);
456 btrfs_set_opt(ctx->mount_opt, DISCARD_SYNC);
457 btrfs_clear_opt(ctx->mount_opt, DISCARD_ASYNC);
463 btrfs_clear_opt(ctx->mount_opt, DISCARD_ASYNC);
464 btrfs_set_opt(ctx->mount_opt, DISCARD_SYNC);
467 btrfs_clear_opt(ctx->mount_opt, DISCARD_SYNC);
468 btrfs_set_opt(ctx->mount_opt, DISCARD_ASYNC);
475 btrfs_clear_opt(ctx->mount_opt, NODISCARD);
479 btrfs_set_opt(ctx->mount_opt, NOSPACECACHE);
480 btrfs_clear_opt(ctx->mount_opt, SPACE_CACHE);
481 btrfs_clear_opt(ctx->mount_opt, FREE_SPACE_TREE);
483 btrfs_clear_opt(ctx->mount_opt, FREE_SPACE_TREE);
484 btrfs_set_opt(ctx->mount_opt, SPACE_CACHE);
490 btrfs_set_opt(ctx->mount_opt, SPACE_CACHE);
491 btrfs_clear_opt(ctx->mount_opt, FREE_SPACE_TREE);
494 btrfs_clear_opt(ctx->mount_opt, SPACE_CACHE);
495 btrfs_set_opt(ctx->mount_opt, FREE_SPACE_TREE);
504 btrfs_set_opt(ctx->mount_opt, RESCAN_UUID_TREE);
507 btrfs_set_opt(ctx->mount_opt, CLEAR_CACHE);
510 btrfs_set_opt(ctx->mount_opt, USER_SUBVOL_RM_ALLOWED);
514 btrfs_clear_opt(ctx->mount_opt, ENOSPC_DEBUG);
516 btrfs_set_opt(ctx->mount_opt, ENOSPC_DEBUG);
520 btrfs_clear_opt(ctx->mount_opt, AUTO_DEFRAG);
522 btrfs_set_opt(ctx->mount_opt, AUTO_DEFRAG);
527 btrfs_set_opt(ctx->mount_opt, USEBACKUPROOT);
530 btrfs_set_opt(ctx->mount_opt, CLEAR_CACHE);
533 btrfs_set_opt(ctx->mount_opt, SKIP_BALANCE);
538 btrfs_set_opt(ctx->mount_opt, PANIC_ON_FATAL_ERROR);
541 btrfs_clear_opt(ctx->mount_opt, PANIC_ON_FATAL_ERROR);
557 btrfs_set_opt(ctx->mount_opt, USEBACKUPROOT);
560 btrfs_set_opt(ctx->mount_opt, NOLOGREPLAY);
563 btrfs_set_opt(ctx->mount_opt, IGNOREBADROOTS);
566 btrfs_set_opt(ctx->mount_opt, IGNOREDATACSUMS);
569 btrfs_set_opt(ctx->mount_opt, IGNOREDATACSUMS);
570 btrfs_set_opt(ctx->mount_opt, IGNOREBADROOTS);
571 btrfs_set_opt(ctx->mount_opt, NOLOGREPLAY);
583 btrfs_set_opt(ctx->mount_opt, FRAGMENT_DATA);
584 btrfs_set_opt(ctx->mount_opt, FRAGMENT_METADATA);
587 btrfs_set_opt(ctx->mount_opt, FRAGMENT_METADATA);
590 btrfs_set_opt(ctx->mount_opt, FRAGMENT_DATA);
601 btrfs_set_opt(ctx->mount_opt, REF_VERIFY);
619 btrfs_clear_opt(fs_info->mount_opt, USEBACKUPROOT);
620 btrfs_clear_opt(fs_info->mount_opt, CLEAR_CACHE);
621 btrfs_clear_opt(fs_info->mount_opt, NOSPACECACHE);
625 unsigned long mount_opt, unsigned long opt,
628 if (mount_opt & opt) {
636 bool btrfs_check_options(struct btrfs_fs_info *info, unsigned long *mount_opt,
642 (check_ro_option(info, *mount_opt, BTRFS_MOUNT_NOLOGREPLAY, "nologreplay") ||
643 check_ro_option(info, *mount_opt, BTRFS_MOUNT_IGNOREBADROOTS, "ignorebadroots") ||
644 check_ro_option(info, *mount_opt, BTRFS_MOUNT_IGNOREDATACSUMS, "ignoredatacsums")))
648 !btrfs_raw_test_opt(*mount_opt, FREE_SPACE_TREE) &&
649 !btrfs_raw_test_opt(*mount_opt, CLEAR_CACHE)) {
654 !btrfs_raw_test_opt(*mount_opt, FREE_SPACE_TREE)) {
659 if (btrfs_check_mountopts_zoned(info, mount_opt))
663 if (btrfs_raw_test_opt(*mount_opt, SPACE_CACHE))
665 if (btrfs_raw_test_opt(*mount_opt, FREE_SPACE_TREE))
687 btrfs_clear_opt(fs_info->mount_opt, SPACE_CACHE);
692 btrfs_set_opt(fs_info->mount_opt, FREE_SPACE_TREE);
721 btrfs_set_opt(fs_info->mount_opt, FREE_SPACE_TREE);
723 btrfs_set_opt(fs_info->mount_opt, SPACE_CACHE);
730 btrfs_set_opt(fs_info->mount_opt, SSD);
746 btrfs_set_opt(fs_info->mount_opt, DISCARD_ASYNC);
1212 (!btrfs_raw_test_opt(fs_info->mount_opt, AUTO_DEFRAG) ||
1232 (!btrfs_raw_test_opt(fs_info->mount_opt, AUTO_DEFRAG) || sb_rdonly(fs_info->sb))) {
1364 fs_info->mount_opt = ctx->mount_opt;
1375 ctx->mount_opt = fs_info->mount_opt;
1382 if ((!old_ctx || !btrfs_raw_test_opt(old_ctx->mount_opt, opt)) && \
1383 btrfs_raw_test_opt(fs_info->mount_opt, opt)) \
1389 if ((old_ctx && btrfs_raw_test_opt(old_ctx->mount_opt, opt)) && \
1390 !btrfs_raw_test_opt(fs_info->mount_opt, opt)) \
1434 (!btrfs_raw_test_opt(old->mount_opt, FORCE_COMPRESS) &&
1435 btrfs_raw_test_opt(info->mount_opt, FORCE_COMPRESS)))) {
1464 ctx->mount_opt = old_ctx.mount_opt;
1470 !btrfs_check_options(fs_info, &ctx->mount_opt, fc->sb_flags))
1478 btrfs_remount_begin(fs_info, old_ctx.mount_opt, fc->sb_flags);
1489 btrfs_set_opt(fs_info->mount_opt, FREE_SPACE_TREE);
1490 btrfs_clear_opt(fs_info->mount_opt, SPACE_CACHE);
1493 btrfs_clear_opt(fs_info->mount_opt, FREE_SPACE_TREE);
1494 btrfs_set_opt(fs_info->mount_opt, SPACE_CACHE);
1516 btrfs_remount_cleanup(fs_info, old_ctx.mount_opt);
1523 btrfs_remount_cleanup(fs_info, old_ctx.mount_opt);