diff options
author | Zheng Qixing <zhengqixing@huawei.com> | 2025-04-03 04:53:22 +0300 |
---|---|---|
committer | Yu Kuai <yukuai3@huawei.com> | 2025-04-06 07:55:13 +0300 |
commit | 6ec1f0239485028445d213d91cfee5242f3211ba (patch) | |
tree | 10648b684c296ab3e12aacbc72db577508c7f8e0 /tools/perf/scripts/python/intel-pt-events.py | |
parent | d05af90d6218e9c8f1c2026990c3f53c1b41bfb0 (diff) | |
download | linux-6ec1f0239485028445d213d91cfee5242f3211ba.tar.xz |
md/md-bitmap: fix stats collection for external bitmaps
The bitmap_get_stats() function incorrectly returns -ENOENT for external
bitmaps.
Remove the external bitmap check as the statistics should be available
regardless of bitmap storage location.
Return -EINVAL only for invalid bitmap with no storage (neither in
superblock nor in external file).
Note: "bitmap_info.external" here refers to a bitmap stored in a separate
file (bitmap_file), not to external metadata.
Fixes: 8d28d0ddb986 ("md/md-bitmap: Synchronize bitmap_get_stats() with bitmap lifetime")
Signed-off-by: Zheng Qixing <zhengqixing@huawei.com>
Link: https://lore.kernel.org/linux-raid/20250403015322.2873369-1-zhengqixing@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions