diff options
| author | Andreas Gruenbacher <agruenba@redhat.com> | 2019-08-05 12:22:03 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-16 10:12:41 +0200 |
| commit | 21344f0575f0ad63a7258c8addea9abbbc1a4dd6 (patch) | |
| tree | 999ab411ccd2c287f761bfed30cd6f181490a3e4 /kernel/debug/kdb | |
| parent | b674f7914a64efe9709c912911c72a700683424e (diff) | |
gfs2: gfs2_walk_metadata fix
commit a27a0c9b6a208722016c8ec5ad31ec96082b91ec 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>
Diffstat (limited to 'kernel/debug/kdb')
0 files changed, 0 insertions, 0 deletions
