ext4: Fix handling of sparse files
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sat, 5 Nov 2016 21:17:14 +0000 (22:17 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 21 Nov 2016 19:07:27 +0000 (14:07 -0500)
commitf81db56f2fd6dc16efeaec2961121244765a1f11
tree6adffeecc5a29536515b36d3add063c91ffa5a6d
parentd8c1e0331ac31aefe32c9182a44b612617008288
ext4: Fix handling of sparse files

A sparse file may have regions not mapped by any extents, at the start
or at the end of the file, or anywhere between, thus not finding a
matching extent region is never an error.

Found by python filesystem tests.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
fs/ext4/ext4_common.c