aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2020-06-24 18:03:15 +0200
committerTom Rini <trini@konsulko.com>2020-09-07 21:00:36 -0400
commit5573c20fad115e0b4c361b3805736f8a8d58dff1 (patch)
tree1a3ec0fec8599debb48c7e7e1bebd713278d9c77 /fs/btrfs/disk-io.c
parente8e95c7ee183f949129a0e3b46d3d238c3928535 (diff)
downloadu-boot-5573c20fad115e0b4c361b3805736f8a8d58dff1.zip
u-boot-5573c20fad115e0b4c361b3805736f8a8d58dff1.tar.gz
u-boot-5573c20fad115e0b4c361b3805736f8a8d58dff1.tar.bz2
fs: btrfs: Cleanup the old implementation
This cleans up the now unneeded code from the old btrfs implementation. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 4da1b80..01e7cee 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -310,36 +310,6 @@ int btrfs_read_dev_super(struct blk_desc *desc, struct disk_partition *part,
return 0;
}
-int btrfs_read_superblock(void)
-{
- ALLOC_CACHE_ALIGN_BUFFER(char, raw_sb, BTRFS_SUPER_INFO_SIZE);
- struct btrfs_super_block *sb = (struct btrfs_super_block *) raw_sb;
- int ret;
-
-
- btrfs_info.sb.generation = 0;
-
- ret = btrfs_read_dev_super(btrfs_blk_desc, btrfs_part_info, sb);
- if (ret < 0) {
- pr_debug("%s: No valid BTRFS superblock found!\n", __func__);
- return ret;
- }
- btrfs_super_block_to_cpu(sb);
- memcpy(&btrfs_info.sb, sb, sizeof(*sb));
-
- if (btrfs_info.sb.num_devices != 1) {
- printf("%s: Unsupported number of devices (%lli). This driver "
- "only supports filesystem on one device.\n", __func__,
- btrfs_info.sb.num_devices);
- return -1;
- }
-
- pr_debug("Chosen superblock with generation = %llu\n",
- btrfs_info.sb.generation);
-
- return 0;
-}
-
static int __csum_tree_block_size(struct extent_buffer *buf, u16 csum_size,
int verify, int silent, u16 csum_type)
{