diff options
author | 2025-04-28 10:16:19 +0930 | |
---|---|---|
committer | 2025-05-15 14:30:50 +0200 | |
commit | 007fa63225683f540456a631045de681473d31d5 (patch) | |
tree | ea2cc4c7a3be7723710fb3abbfa2f484f800a010 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: merge btrfs_read_dev_one_super() into btrfs_read_disk_super() (diff) | |
download | linux-rng-007fa63225683f540456a631045de681473d31d5.tar.xz linux-rng-007fa63225683f540456a631045de681473d31d5.zip |
btrfs: get rid of btrfs_read_dev_super()
The function is introduced by commit a512bbf855ff ("Btrfs: superblock
duplication") at the beginning of btrfs.
It leaved a comment saying we'd need a special mount option to read all
super blocks, but it's never been implemented and there was not
need/request for it. The check/rescue tools are able to start from a
specific copy and use it as primary eventually.
This means btrfs_read_dev_super() is always reading the first super
block, making all the code finding the latest super block unnecessary.
Just remove that function and replace all call sites with
btrfs_read_disk_super(bdev, 0, false).
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