diff options
| -rw-r--r-- | Documentation/filesystems/btrfs.txt | 3 | ||||
| -rw-r--r-- | fs/btrfs/super.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/filesystems/btrfs.txt b/Documentation/filesystems/btrfs.txt index 7254cf501391..13a7cac80430 100644 --- a/Documentation/filesystems/btrfs.txt +++ b/Documentation/filesystems/btrfs.txt | |||
| @@ -108,8 +108,9 @@ Options with (*) are default options and will not show in the mount options. | |||
| 108 | performance impact. (The fstrim command is also available to | 108 | performance impact. (The fstrim command is also available to |
| 109 | initiate batch trims from userspace). | 109 | initiate batch trims from userspace). |
| 110 | 110 | ||
| 111 | noenospc_debug(*) | ||
| 111 | enospc_debug | 112 | enospc_debug |
| 112 | Debugging option to be more verbose in some ENOSPC conditions. | 113 | Disable/enable debugging option to be more verbose in some ENOSPC conditions. |
| 113 | 114 | ||
| 114 | fatal_errors=<action> | 115 | fatal_errors=<action> |
| 115 | Action to take when encountering a fatal error: | 116 | Action to take when encountering a fatal error: |
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index e15377035dd5..832540645c20 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
| @@ -324,6 +324,7 @@ enum { | |||
| 324 | Opt_check_integrity, Opt_check_integrity_including_extent_data, | 324 | Opt_check_integrity, Opt_check_integrity_including_extent_data, |
| 325 | Opt_check_integrity_print_mask, Opt_fatal_errors, Opt_rescan_uuid_tree, | 325 | Opt_check_integrity_print_mask, Opt_fatal_errors, Opt_rescan_uuid_tree, |
| 326 | Opt_commit_interval, Opt_barrier, Opt_nodefrag, Opt_nodiscard, | 326 | Opt_commit_interval, Opt_barrier, Opt_nodefrag, Opt_nodiscard, |
| 327 | Opt_noenospc_debug, | ||
| 327 | Opt_err, | 328 | Opt_err, |
| 328 | }; | 329 | }; |
| 329 | 330 | ||
| @@ -356,6 +357,7 @@ static match_table_t tokens = { | |||
| 356 | {Opt_clear_cache, "clear_cache"}, | 357 | {Opt_clear_cache, "clear_cache"}, |
| 357 | {Opt_user_subvol_rm_allowed, "user_subvol_rm_allowed"}, | 358 | {Opt_user_subvol_rm_allowed, "user_subvol_rm_allowed"}, |
| 358 | {Opt_enospc_debug, "enospc_debug"}, | 359 | {Opt_enospc_debug, "enospc_debug"}, |
| 360 | {Opt_noenospc_debug, "noenospc_debug"}, | ||
| 359 | {Opt_subvolrootid, "subvolrootid=%d"}, | 361 | {Opt_subvolrootid, "subvolrootid=%d"}, |
| 360 | {Opt_defrag, "autodefrag"}, | 362 | {Opt_defrag, "autodefrag"}, |
| 361 | {Opt_nodefrag, "noautodefrag"}, | 363 | {Opt_nodefrag, "noautodefrag"}, |
| @@ -603,6 +605,9 @@ int btrfs_parse_options(struct btrfs_root *root, char *options) | |||
| 603 | case Opt_enospc_debug: | 605 | case Opt_enospc_debug: |
| 604 | btrfs_set_opt(info->mount_opt, ENOSPC_DEBUG); | 606 | btrfs_set_opt(info->mount_opt, ENOSPC_DEBUG); |
| 605 | break; | 607 | break; |
| 608 | case Opt_noenospc_debug: | ||
| 609 | btrfs_clear_opt(info->mount_opt, ENOSPC_DEBUG); | ||
| 610 | break; | ||
| 606 | case Opt_defrag: | 611 | case Opt_defrag: |
| 607 | btrfs_info(root->fs_info, "enabling auto defrag"); | 612 | btrfs_info(root->fs_info, "enabling auto defrag"); |
| 608 | btrfs_set_opt(info->mount_opt, AUTO_DEFRAG); | 613 | btrfs_set_opt(info->mount_opt, AUTO_DEFRAG); |
