commit | e3427184f38a3a5d2ac9a3c200a5c3fc17592ec6 | [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 | 01347f64d5f86ae467141550f84ed0f97415a9ff [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>