super.c (530362934332e4efac81d40583aa1225e64f556f) | super.c (2c9ee85671f66cd3ffc7067de47cc59ed6677299) |
---|---|
1/* 2 * Copyright (C) 2007 Oracle. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public 6 * License v2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 310 unchanged lines hidden (view full) --- 319 Opt_compress_type, Opt_compress_force, Opt_compress_force_type, 320 Opt_notreelog, Opt_ratio, Opt_flushoncommit, Opt_discard, 321 Opt_space_cache, Opt_clear_cache, Opt_user_subvol_rm_allowed, 322 Opt_enospc_debug, Opt_subvolrootid, Opt_defrag, Opt_inode_cache, 323 Opt_no_space_cache, Opt_recovery, Opt_skip_balance, 324 Opt_check_integrity, Opt_check_integrity_including_extent_data, 325 Opt_check_integrity_print_mask, Opt_fatal_errors, Opt_rescan_uuid_tree, 326 Opt_commit_interval, Opt_barrier, Opt_nodefrag, Opt_nodiscard, | 1/* 2 * Copyright (C) 2007 Oracle. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public 6 * License v2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 310 unchanged lines hidden (view full) --- 319 Opt_compress_type, Opt_compress_force, Opt_compress_force_type, 320 Opt_notreelog, Opt_ratio, Opt_flushoncommit, Opt_discard, 321 Opt_space_cache, Opt_clear_cache, Opt_user_subvol_rm_allowed, 322 Opt_enospc_debug, Opt_subvolrootid, Opt_defrag, Opt_inode_cache, 323 Opt_no_space_cache, Opt_recovery, Opt_skip_balance, 324 Opt_check_integrity, Opt_check_integrity_including_extent_data, 325 Opt_check_integrity_print_mask, Opt_fatal_errors, Opt_rescan_uuid_tree, 326 Opt_commit_interval, Opt_barrier, Opt_nodefrag, Opt_nodiscard, |
327 Opt_noenospc_debug, | 327 Opt_noenospc_debug, Opt_noflushoncommit, |
328 Opt_err, 329}; 330 331static match_table_t tokens = { 332 {Opt_degraded, "degraded"}, 333 {Opt_subvol, "subvol=%s"}, 334 {Opt_subvolid, "subvolid=%s"}, 335 {Opt_device, "device=%s"}, --- 9 unchanged lines hidden (view full) --- 345 {Opt_compress_force, "compress-force"}, 346 {Opt_compress_force_type, "compress-force=%s"}, 347 {Opt_ssd, "ssd"}, 348 {Opt_ssd_spread, "ssd_spread"}, 349 {Opt_nossd, "nossd"}, 350 {Opt_noacl, "noacl"}, 351 {Opt_notreelog, "notreelog"}, 352 {Opt_flushoncommit, "flushoncommit"}, | 328 Opt_err, 329}; 330 331static match_table_t tokens = { 332 {Opt_degraded, "degraded"}, 333 {Opt_subvol, "subvol=%s"}, 334 {Opt_subvolid, "subvolid=%s"}, 335 {Opt_device, "device=%s"}, --- 9 unchanged lines hidden (view full) --- 345 {Opt_compress_force, "compress-force"}, 346 {Opt_compress_force_type, "compress-force=%s"}, 347 {Opt_ssd, "ssd"}, 348 {Opt_ssd_spread, "ssd_spread"}, 349 {Opt_nossd, "nossd"}, 350 {Opt_noacl, "noacl"}, 351 {Opt_notreelog, "notreelog"}, 352 {Opt_flushoncommit, "flushoncommit"}, |
353 {Opt_noflushoncommit, "noflushoncommit"}, |
|
353 {Opt_ratio, "metadata_ratio=%d"}, 354 {Opt_discard, "discard"}, 355 {Opt_nodiscard, "nodiscard"}, 356 {Opt_space_cache, "space_cache"}, 357 {Opt_clear_cache, "clear_cache"}, 358 {Opt_user_subvol_rm_allowed, "user_subvol_rm_allowed"}, 359 {Opt_enospc_debug, "enospc_debug"}, 360 {Opt_noenospc_debug, "noenospc_debug"}, --- 196 unchanged lines hidden (view full) --- 557 case Opt_notreelog: 558 btrfs_info(root->fs_info, "disabling tree log"); 559 btrfs_set_opt(info->mount_opt, NOTREELOG); 560 break; 561 case Opt_flushoncommit: 562 btrfs_info(root->fs_info, "turning on flush-on-commit"); 563 btrfs_set_opt(info->mount_opt, FLUSHONCOMMIT); 564 break; | 354 {Opt_ratio, "metadata_ratio=%d"}, 355 {Opt_discard, "discard"}, 356 {Opt_nodiscard, "nodiscard"}, 357 {Opt_space_cache, "space_cache"}, 358 {Opt_clear_cache, "clear_cache"}, 359 {Opt_user_subvol_rm_allowed, "user_subvol_rm_allowed"}, 360 {Opt_enospc_debug, "enospc_debug"}, 361 {Opt_noenospc_debug, "noenospc_debug"}, --- 196 unchanged lines hidden (view full) --- 558 case Opt_notreelog: 559 btrfs_info(root->fs_info, "disabling tree log"); 560 btrfs_set_opt(info->mount_opt, NOTREELOG); 561 break; 562 case Opt_flushoncommit: 563 btrfs_info(root->fs_info, "turning on flush-on-commit"); 564 btrfs_set_opt(info->mount_opt, FLUSHONCOMMIT); 565 break; |
566 case Opt_noflushoncommit: 567 if (btrfs_test_opt(root, FLUSHONCOMMIT)) 568 btrfs_info(root->fs_info, "turning off flush-on-commit"); 569 btrfs_clear_opt(info->mount_opt, FLUSHONCOMMIT); 570 break; |
|
565 case Opt_ratio: 566 ret = match_int(&args[0], &intarg); 567 if (ret) { 568 goto out; 569 } else if (intarg >= 0) { 570 info->metadata_ratio = intarg; 571 btrfs_info(root->fs_info, "metadata ratio %d", 572 info->metadata_ratio); --- 1364 unchanged lines hidden --- | 571 case Opt_ratio: 572 ret = match_int(&args[0], &intarg); 573 if (ret) { 574 goto out; 575 } else if (intarg >= 0) { 576 info->metadata_ratio = intarg; 577 btrfs_info(root->fs_info, "metadata ratio %d", 578 info->metadata_ratio); --- 1364 unchanged lines hidden --- |