Btrfs: Fix super block updates during transaction commit
The super block written during commit was not consistent with the state of the trees. This change adds an in-memory copy of the super so that we can make sure to write out consistent data during a commit. Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
committed by
David Woodhouse
parent
79c44584ea
commit
4b52dff6d3
@ -306,6 +306,7 @@ struct btrfs_fs_info {
|
||||
u64 generation;
|
||||
struct btrfs_transaction *running_transaction;
|
||||
struct btrfs_super_block *disk_super;
|
||||
struct btrfs_super_block super_copy;
|
||||
struct buffer_head *sb_buffer;
|
||||
struct super_block *sb;
|
||||
struct inode *btree_inode;
|
||||
|
Reference in New Issue
Block a user