path: root/ctree.h
diff options
authorDavid Sterba <>2013-03-06 17:32:51 +0100
committerDavid Sterba <>2013-03-10 16:12:21 +0100
commitdd21bc16ad9bfd87df9311b39dad425ee533eb78 (patch)
tree0d8cd4e374eaeb0dd30f6aa4603d7d6a073280b4 /ctree.h
parentfc61b53da8dba69d2a150ca4fa8faca62c978221 (diff)
btrfs-progs: separate super_copy out of fs_info
Allocate fs_info::super_copy dynamically of full BTRFS_SUPER_INFO_SIZE and use it directly for saving superblock to disk. This fixes incorrect superblock checksum after mkfs. Signed-off-by: David Sterba <>
Diffstat (limited to 'ctree.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/ctree.h b/ctree.h
index 0aed2fcb..9442e037 100644
--- a/ctree.h
+++ b/ctree.h
@@ -923,7 +923,7 @@ struct btrfs_fs_info {
u64 alloc_start;
struct btrfs_trans_handle *running_transaction;
- struct btrfs_super_block super_copy;
+ struct btrfs_super_block *super_copy;
struct mutex fs_mutex;
u64 super_bytenr;