Files
linux/fs/gfs2
Andreas Gruenbacher 21344f0575 gfs2: gfs2_walk_metadata fix
commit a27a0c9b6a upstream.

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+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-16 10:12:41 +02:00
..
2016-05-12 22:28:05 -04:00
2018-07-02 16:27:17 +01:00
2019-08-16 10:12:41 +02:00
2018-06-04 07:56:51 -05:00
2016-06-27 09:47:09 -05:00
2018-07-25 00:08:59 +02:00
2016-06-27 09:47:08 -05:00
2018-02-01 11:25:31 -07:00
2018-01-23 07:38:53 -07:00
2018-06-12 16:19:22 -07:00
2018-03-08 09:26:20 -07:00
2017-04-19 08:25:43 -04:00
2018-07-25 00:06:24 +02:00
2018-07-05 17:47:16 +02:00
2018-06-21 07:39:44 -05:00
2018-06-21 07:39:44 -05:00
2018-08-03 13:20:02 +01:00
2015-12-06 21:25:17 -05:00