mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 09:12:07 +00:00
btrfs: modload to print RAID1 balancing status
Modified the Btrfs loading message to include the RAID1 balancing status if the experimental feature is enabled. Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
e51f52e1d3
commit
45d8d33c88
@ -2469,7 +2469,17 @@ static int __init btrfs_print_mod_info(void)
|
||||
", fsverity=no"
|
||||
#endif
|
||||
;
|
||||
|
||||
#ifdef CONFIG_BTRFS_EXPERIMENTAL
|
||||
if (btrfs_get_raid1_balancing() == NULL)
|
||||
pr_info("Btrfs loaded%s\n", options);
|
||||
else
|
||||
pr_info("Btrfs loaded%s, raid1_balancing=%s\n",
|
||||
options, btrfs_get_raid1_balancing());
|
||||
#else
|
||||
pr_info("Btrfs loaded%s\n", options);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user