diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-06-26 10:06:50 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-06-26 10:06:50 -0400 |
commit | 4b52dff6d371b9b93bc99f64c32831ea9a8ec3ac (patch) | |
tree | 160a5fb1d8ab8e593775962aedac6ef770da7f3c /fs/btrfs/ctree.h | |
parent | 79c44584ea346024e929ac0f2a3577aac33b7b3f (diff) |
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index fb6fffb71dd0..1998f86df08a 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -306,6 +306,7 @@ struct btrfs_fs_info { | |||
306 | u64 generation; | 306 | u64 generation; |
307 | struct btrfs_transaction *running_transaction; | 307 | struct btrfs_transaction *running_transaction; |
308 | struct btrfs_super_block *disk_super; | 308 | struct btrfs_super_block *disk_super; |
309 | struct btrfs_super_block super_copy; | ||
309 | struct buffer_head *sb_buffer; | 310 | struct buffer_head *sb_buffer; |
310 | struct super_block *sb; | 311 | struct super_block *sb; |
311 | struct inode *btree_inode; | 312 | struct inode *btree_inode; |