mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 09:21:34 -04:00
btrfs: print read policy on module load
Print the read read policy if set as module parameter (with CONFIG_BTRFS_EXPERIMENTAL). Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -2469,7 +2469,17 @@ static int __init btrfs_print_mod_info(void)
|
||||
", fsverity=no"
|
||||
#endif
|
||||
;
|
||||
|
||||
#ifdef CONFIG_BTRFS_EXPERIMENTAL
|
||||
if (btrfs_get_mod_read_policy() == NULL)
|
||||
pr_info("Btrfs loaded%s\n", options);
|
||||
else
|
||||
pr_info("Btrfs loaded%s, read_policy=%s\n",
|
||||
options, btrfs_get_mod_read_policy());
|
||||
#else
|
||||
pr_info("Btrfs loaded%s\n", options);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user