]> git.baikalelectronics.ru Git - uboot.git/commit
fs: btrfs: Implement btrfs_file_read()
authorQu Wenruo <wqu@suse.com>
Wed, 24 Jun 2020 16:03:11 +0000 (18:03 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 8 Sep 2020 01:00:36 +0000 (21:00 -0400)
commitfc03a5a800af1762626e0ace3086ac2bbdce97a1
treeaa3021bacba25f9a905ad668ef8ad2136bdd7687
parent5140401df328d06ffe4e30fa87c39435aeebad25
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>
fs/btrfs/btrfs.c
fs/btrfs/btrfs.h
fs/btrfs/inode.c