commit | cf5a3a0b29c6e9b2cdac47531b0a1a7409ba88a9 | [log] [tgz] |
---|---|---|
author | Qu Wenruo <wqu@suse.com> | Wed Jun 24 18:03:11 2020 +0200 |
committer | Tom Rini <trini@konsulko.com> | Mon Sep 07 21:00:36 2020 -0400 |
tree | aa3021bacba25f9a905ad668ef8ad2136bdd7687 | |
parent | 4650ed1214591780e38bc0c66633c69ed63960c4 [diff] |
fs: btrfs: Implement btrfs_file_read() This version of btrfs_file_read() has the following new features: - Tries all mirrors - More handling on unaligned size - Better compressed extent handling The old implementation doesn't handle compressed extent with offset properly: we need to read out the whole compressed extent, then decompress the whole extent, and only then copy the requested part. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>