Skip to content

Commit cbeaae4

Browse files
committed
btrfs: shorten integrity checker extent data mount option
Subjectively, CHECK_INTEGRITY_INCLUDING_EXTENT_DATA is quite long and calling it CHECK_INTEGRITY_DATA still keeps the meaning and matches the mount option name. Reviewed-by: Anand Jain <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent ccd9395 commit cbeaae4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

fs/btrfs/ctree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ enum {
14051405
BTRFS_MOUNT_USEBACKUPROOT = (1UL << 17),
14061406
BTRFS_MOUNT_SKIP_BALANCE = (1UL << 18),
14071407
BTRFS_MOUNT_CHECK_INTEGRITY = (1UL << 19),
1408-
BTRFS_MOUNT_CHECK_INTEGRITY_INCLUDING_EXTENT_DATA = (1UL << 20),
1408+
BTRFS_MOUNT_CHECK_INTEGRITY_DATA = (1UL << 20),
14091409
BTRFS_MOUNT_PANIC_ON_FATAL_ERROR = (1UL << 21),
14101410
BTRFS_MOUNT_RESCAN_UUID_TREE = (1UL << 22),
14111411
BTRFS_MOUNT_FRAGMENT_DATA = (1UL << 23),

fs/btrfs/disk-io.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,8 +3598,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
35983598
if (btrfs_test_opt(fs_info, CHECK_INTEGRITY)) {
35993599
ret = btrfsic_mount(fs_info, fs_devices,
36003600
btrfs_test_opt(fs_info,
3601-
CHECK_INTEGRITY_INCLUDING_EXTENT_DATA) ?
3602-
1 : 0,
3601+
CHECK_INTEGRITY_DATA) ? 1 : 0,
36033602
fs_info->check_integrity_print_mask);
36043603
if (ret)
36053604
btrfs_warn(fs_info,

fs/btrfs/super.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -934,8 +934,7 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
934934
case Opt_check_integrity_including_extent_data:
935935
btrfs_info(info,
936936
"enabling check integrity including extent data");
937-
btrfs_set_opt(info->mount_opt,
938-
CHECK_INTEGRITY_INCLUDING_EXTENT_DATA);
937+
btrfs_set_opt(info->mount_opt, CHECK_INTEGRITY_DATA);
939938
btrfs_set_opt(info->mount_opt, CHECK_INTEGRITY);
940939
break;
941940
case Opt_check_integrity:
@@ -1516,7 +1515,7 @@ static int btrfs_show_options(struct seq_file *seq, struct dentry *dentry)
15161515
if (btrfs_test_opt(info, SKIP_BALANCE))
15171516
seq_puts(seq, ",skip_balance");
15181517
#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
1519-
if (btrfs_test_opt(info, CHECK_INTEGRITY_INCLUDING_EXTENT_DATA))
1518+
if (btrfs_test_opt(info, CHECK_INTEGRITY_DATA))
15201519
seq_puts(seq, ",check_int_data");
15211520
else if (btrfs_test_opt(info, CHECK_INTEGRITY))
15221521
seq_puts(seq, ",check_int");

0 commit comments

Comments
 (0)