Btrfs: print error messages when failing to read trees
authorLiu Bo <bo.liu@linux.alibaba.com>
Wed, 28 Mar 2018 22:11:45 +0000 (06:11 +0800)
committerDavid Sterba <dsterba@suse.com>
Sat, 31 Mar 2018 00:02:14 +0000 (02:02 +0200)
commitf50f43539070c6c876bf5435fb23f898f9d81e72
treed120e529a489b24d6d569433c1c6b2f7772ee280
parent38e82de8ccd1878fb5f8371b8a6f455a6bbd0325
Btrfs: print error messages when failing to read trees

When mount fails to read trees like fs tree, checksum tree, extent
tree, etc, there is not enough information about where went wrong.

With this, messages like

"BTRFS warning (device sdf): failed to read root (objectid=7): -5"

would help us a bit.

Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c