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
..
2019-07-31 07:27:08 +02:00
2019-08-06 19:06:49 +02:00
2019-07-21 09:03:06 +02:00
2019-03-13 14:02:32 -07:00
2018-12-01 09:37:27 +01:00
2019-08-06 19:06:53 +02:00
2018-12-17 09:24:40 +01:00
2019-08-06 19:06:50 +02:00
2019-08-06 19:06:50 +02:00
2019-08-06 19:06:51 +02:00
2019-06-22 08:15:17 +02:00
2018-11-13 11:08:55 -08:00
2019-07-26 09:14:02 +02:00
2019-05-08 07:21:48 +02:00
2019-03-23 20:09:59 +01:00
2019-07-31 07:27:07 +02:00
2019-07-26 09:14:29 +02:00
2018-11-27 16:13:00 +01:00
2018-12-17 09:24:35 +01:00
2019-03-23 20:10:03 +01:00
2019-07-28 08:29:30 +02:00
2019-07-31 07:27:07 +02:00
2019-06-15 11:53:59 +02:00
2018-12-17 09:24:40 +01:00
2019-06-15 11:54:07 +02:00
2019-08-16 10:12:41 +02:00
2018-12-17 09:24:41 +01:00
2018-12-17 09:24:41 +01:00
2019-05-22 07:37:40 +02:00
2019-07-28 08:29:29 +02:00
2019-05-08 07:21:48 +02:00
2019-05-16 19:41:18 +02:00
2019-06-09 09:17:22 +02:00
2019-08-04 09:30:54 +02:00
2019-07-10 09:53:47 +02:00
2018-09-04 16:45:02 -07:00
2019-07-31 07:27:08 +02:00
2019-06-22 08:15:21 +02:00
2019-06-25 11:35:52 +08:00
2019-08-04 09:30:56 +02:00
2019-06-11 12:20:52 +02:00
2019-07-14 08:11:15 +02:00
2018-11-27 16:12:59 +01:00
2018-12-17 09:24:30 +01:00
2018-12-29 13:37:55 +01:00
2019-07-14 08:11:16 +02:00
2019-05-25 18:23:46 +02:00
2019-07-26 09:14:29 +02:00
2019-05-02 09:58:59 +02:00
2019-07-03 13:14:44 +02:00
2019-02-15 09:09:54 +01:00
2019-04-17 08:38:52 +02:00
2019-04-05 22:33:00 +02:00
2019-05-31 06:46:27 -07:00
2019-08-09 17:52:34 +02:00
2019-06-15 11:54:01 +02:00
2019-05-25 18:23:26 +02:00
2019-03-05 17:58:50 +01:00
2019-03-13 14:02:32 -07:00
2019-02-12 19:47:19 +01:00
2019-08-04 09:30:56 +02:00
2019-04-05 22:32:59 +02:00
2019-07-26 09:14:08 +02:00
2019-06-22 08:15:21 +02:00
2019-05-31 06:46:05 -07:00
2018-11-21 09:19:14 +01:00
2019-03-13 14:02:29 -07:00
2018-12-29 13:37:54 +01:00
2018-11-21 09:19:22 +01:00
2019-05-25 18:23:26 +02:00
2019-07-31 07:27:11 +02:00
2019-05-04 09:20:11 +02:00
2019-05-08 07:21:51 +02:00
2019-05-04 09:20:11 +02:00
2019-07-10 09:53:42 +02:00
2018-09-18 07:30:48 -04:00