]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs: btrfs: support sparse extents
authorMarek Behún <marek.behun@nic.cz>
Mon, 30 Mar 2020 16:48:42 +0000 (18:48 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 20 Apr 2020 16:23:29 +0000 (12:23 -0400)
commit48180e15d3eaff51b1da30a90bc64b7acba8fb51
tree21b51f587ddac3a906c1329be9c97efb8742d0c6
parentf4a1426fd6e473ff523147a67d079c7ccb2a4e27
fs: btrfs: support sparse extents

When logical address of a regular extent is 0, the extent is sparse and
consists of all zeros.

Without this when sparse extents are used in a file reading fails with
  Cannot map logical address 0 to physical

Signed-off-by: Marek Behún <marek.behun@nic.cz>
fs/btrfs/extent-io.c