summaryrefslogtreecommitdiff
path: root/scripts/bash-completion
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2025-04-28 03:46:19 +0300
committerDavid Sterba <dsterba@suse.com>2025-05-15 15:30:50 +0300
commit007fa63225683f540456a631045de681473d31d5 (patch)
treeea2cc4c7a3be7723710fb3abbfa2f484f800a010 /scripts/bash-completion
parent63f32b7b5d5a9107d04fb11cc85d5cd695f85e19 (diff)
downloadlinux-007fa63225683f540456a631045de681473d31d5.tar.xz
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 'scripts/bash-completion')
0 files changed, 0 insertions, 0 deletions