btrfs-progs/kernel-shared
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
..
backref.c
backref.h
ctree.c btrfs-progs: remove direct calls to crc32c from ctree.h 2021-10-08 20:46:35 +02:00
ctree.h btrfs-progs: unify size of btrfs_super_block and BTRFS_SUPER_INFO_SIZE 2021-11-05 12:50:03 +01:00
delayed-ref.c btrfs-progs: don't include btrfs-list.h unless necessary 2021-10-08 20:47:03 +02:00
delayed-ref.h btrfs-progs: unify GPL header comments 2021-09-07 13:58:44 +02:00
dir-item.c btrfs-progs: remove root argument from btrfs_truncate_item 2021-10-08 20:46:34 +02:00
disk-io.c btrfs-progs: remove temporary buffer for super block 2021-11-05 12:50:03 +01:00
disk-io.h btrfs-progs: unify size of btrfs_super_block and BTRFS_SUPER_INFO_SIZE 2021-11-05 12:50:03 +01:00
extent_io.c btrfs-progs: introduce btrfs_pread wrapper for pread 2021-10-20 18:59:23 +02:00
extent_io.h
extent-tree.c btrfs-progs: rename data parameter to profile in extent allocation path 2021-10-20 18:59:24 +02:00
file-item.c btrfs-progs: remove root argument from btrfs_truncate_item 2021-10-08 20:46:34 +02:00
file.c
free-space-cache.c btrfs-progs: check: batch v1 space cache inodes when clearing 2021-07-22 16:26:05 +02:00
free-space-cache.h btrfs-progs: check: batch v1 space cache inodes when clearing 2021-07-22 16:26:05 +02:00
free-space-tree.c btrfs-progs: add add_block_group_free_space helper 2021-09-06 16:36:17 +02:00
free-space-tree.h btrfs-progs: add add_block_group_free_space helper 2021-09-06 16:36:17 +02:00
inode-item.c btrfs-progs: remove root argument from btrfs_truncate_item 2021-10-08 20:46:34 +02:00
inode.c
print-tree.c btrfs-progs: fix XX_flags_to_str() to always end with '\0' 2021-11-05 12:50:03 +01:00
print-tree.h btrfs-progs: dump-tree: add options to dump checksums 2021-06-19 22:07:49 +02:00
root-tree.c
send.h btrfs-progs: libbtrfs: replace SZ_ constants and drop sizes.h 2021-10-08 20:46:35 +02:00
transaction.c
transaction.h
ulist.c btrfs-progs: unify GPL header comments 2021-09-07 13:58:44 +02:00
ulist.h btrfs-progs: unify GPL header comments 2021-09-07 13:58:44 +02:00
uuid-tree.c btrfs-progs: add btrfs_uuid_tree_remove 2021-10-08 20:46:34 +02:00
volumes.c btrfs-progs: remove temporary buffer for super block 2021-11-05 12:50:03 +01:00
volumes.h btrfs-progs: make "btrfs filesystem df" command show upper case profile 2021-11-05 12:50:03 +01:00
zoned.c btrfs-progs: zoned: factor out supported profiles to a helper 2021-10-20 18:59:23 +02:00
zoned.h btrfs-progs: remove max_zone_append_size logic 2021-10-06 16:49:07 +02:00