btrfs-progs/mkfs
Qu Wenruo 636b2e6027 btrfs-progs: remove temporary buffer for super block
There are a lot of call sites where we use the following code snippet:

	u8 super_block_data[BTRFS_SUPER_INFO_SIZE];
	struct btrfs_super_block *sb;
	u64 ret;

	sb = (struct btrfs_super_block *)super_block_data;

The reason for this is, structure btrfs_super_block was smaller than
BTRFS_SUPER_INFO_SIZE.

Thus for anything with csum involved, we have to use a proper 4K buffer.

Since the recent unification of sizeof(struct btrfs_super_block), we no
longer need such workaround, and can use struct btrfs_super_block
directly to do any operation.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2021-11-05 12:50:03 +01:00
..
common.c btrfs-progs: remove temporary buffer for super block 2021-11-05 12:50:03 +01:00
common.h btrfs-progs: mkfs: don't autoselect DUP on SSD for metadata anymore 2021-10-08 20:47:03 +02:00
main.c btrfs-progs: mkfs: recow all tree blocks properly 2021-10-20 18:59:24 +02:00
Makefile btrfs-progs: build: add stub makefile to image and mkfs 2019-07-04 15:36:01 +02:00
rootdir.c btrfs-progs: set eb::fs_info properly everywhere 2021-10-08 20:47:04 +02:00
rootdir.h btrfs-progs: unify GPL header comments 2021-09-07 13:58:44 +02:00