diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-06-30 03:39:45 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-07-02 19:26:19 +0300 |
commit | a949a1c2a198e048630a8b0741a99b85a5d88136 (patch) | |
tree | 335dd8a637658f801d48a7078a13431b078f9a1c /scripts/gdb/linux/vmalloc.py | |
parent | f045dd00328d78f25d64913285f4547f772d13e2 (diff) | |
download | linux-a949a1c2a198e048630a8b0741a99b85a5d88136.tar.xz |
xfs: fix logdev fsmap query result filtering
The external log device fsmap backend doesn't have an rmapbt to query,
so it's wasteful to spend time initializing the rmap_irec objects.
Worse yet, the log could (someday) be longer than 2^32 fsblocks, so
using the rmap irec structure will result in integer overflows.
Fix this mess by computing the start address that we want from keys[0]
directly, and use the daddr-based record filtering algorithm that we
also use for rtbitmap queries.
Fixes: e89c041338ed ("xfs: implement the GETFSMAP ioctl")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions