]> git.ipfire.org Git - thirdparty/grub.git/commit
btrfs: Refactor the code that read from disk
authorGoffredo Baroncelli <kreijack@inwind.it>
Mon, 22 Oct 2018 17:29:36 +0000 (19:29 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 31 Oct 2018 10:53:03 +0000 (11:53 +0100)
commitc743736048c3ef2a0fc126a29e4bf654e98fb41a
tree0ff629bdfef95cae083c53d1098bff7b74b1bd24
parentc6f79aca8030689ab2087686654ac431db411fa3
btrfs: Refactor the code that read from disk

Move the code in charge to read the data from disk into a separate
function. This helps to separate the error handling logic (which
depends on the different raid profiles) from the read from disk
logic. Refactoring this code increases the general readability too.

This is a preparatory patch, to help the adding of the RAID 5/6 recovery code.

Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/btrfs.c