diff options
author | 2021-09-23 14:00:08 +0800 | |
---|---|---|
committer | 2021-10-26 19:08:02 +0200 | |
commit | 731ccf15c952d53a5f8e8bf98cf110f4048e5ded (patch) | |
tree | 92ce2bf9439e04afe681a9b756fdcbe2a1d9828d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: assert that extent buffers are write locked instead of only locked (diff) | |
download | wireguard-linux-731ccf15c952d53a5f8e8bf98cf110f4048e5ded.tar.xz wireguard-linux-731ccf15c952d53a5f8e8bf98cf110f4048e5ded.zip |
btrfs: make sure btrfs_io_context::fs_info is always initialized
Currently btrfs_io_context::fs_info is only initialized in
btrfs_map_bio, but there are call sites like btrfs_map_sblock() which
calls __btrfs_map_block() directly, leaving bioc::fs_info uninitialized
(NULL).
Currently this is fine, but later cleanup will rely on bioc::fs_info to
grab fs_info, and this can be a hidden problem for such usage.
This patch will remove such hidden uninitialized member by always
assigning bioc::fs_info at alloc_btrfs_io_context().
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions