Andreas Gruenbacher a27a0c9b6a gfs2: gfs2_walk_metadata fix
It turns out that the current version of gfs2_metadata_walker suffers
from multiple problems that can cause gfs2_hole_size to report an
incorrect size.  This will confuse fiemap as well as lseek with the
SEEK_DATA flag.

Fix that by changing gfs2_hole_walker to compute the metapath to the
first data block after the hole (if any), and compute the hole size
based on that.

Fixes xfstest generic/490.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Bob Peterson <rpeterso@redhat.com>
Cc: stable@vger.kernel.org # v4.18+
2019-08-09 16:56:12 +01:00
..
2019-07-03 14:45:18 +02:00
2019-08-09 16:56:12 +01:00
2019-06-27 20:53:46 +02:00
2019-07-12 16:54:37 -07:00
2019-06-27 20:53:46 +02:00
2019-06-27 21:03:53 +02:00
2019-06-08 12:52:42 -07:00
2019-06-27 20:53:45 +02:00
2019-06-27 21:03:53 +02:00