Btrfs: Fix super block updates during transaction commit
authorChris Mason <chris.mason@oracle.com>
Tue, 26 Jun 2007 14:06:50 +0000 (10:06 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Tue, 26 Jun 2007 14:06:50 +0000 (10:06 -0400)
commit4b52dff6d371b9b93bc99f64c32831ea9a8ec3ac
tree160a5fb1d8ab8e593775962aedac6ef770da7f3c
parent79c44584ea346024e929ac0f2a3577aac33b7b3f
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>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/super.c
fs/btrfs/transaction.c