Thread (7 messages) 7 messages, 3 authors, 2021-11-04

Re: [PATCH 0/3] btrfs-progs: cleanup related to btrfs super block

From: David Sterba <hidden>
Date: 2021-11-04 19:10:56

On Thu, Oct 21, 2021 at 09:40:17AM +0800, Qu Wenruo wrote:
This patchset mostly cleans up the mismatch between
BTRFS_SUPER_INFO_SIZE and sizeof(struct btrfs_super_block).

This cleanup itself is going to replace all the following snippets:

	u8 super_block_data[BTRFS_SUPER_INFO_SIZE];
	struct btrfs_super_block *sb;

	sb = (struct btrfs_super_block *)super_block_data;

With:

	struct btrfs_super_block sb;

Also since we're here, also cache csum_type and csum_size in fs_info,
just like what we did in the kernel.

Qu Wenruo (3):
  btrfs-progs: unify sizeof(struct btrfs_super_block) and
    BTRFS_SUPER_INFO_SIZE
  btrfs-progs: remove temporary buffer for super block
  btrfs-progs: cache csum_size and csum_type in btrfs_fs_info
Added to devel, thanks, the removal of temporary buffer for superblock
is nice.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help