mirror of
https://github.com/torvalds/linux.git
synced 2025-11-02 09:40:27 +02: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:
parent
e426286cfa
commit
3681dbe0af
1 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue