Btrfs: Move snapshot creation to commit time
authorChris Mason <chris.mason@oracle.com>
Tue, 8 Jan 2008 20:46:30 +0000 (15:46 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:59 +0000 (11:03 -0400)
commit3063d29f2a4d4a4e9fa1ec77c124514f287c6da7
tree61aa53d18c6684a327b6166764eecbea9d0e6b5b
parentdc17ff8f11d129db9e83ab7244769e4eae05e14d
Btrfs: Move snapshot creation to commit time

It is very difficult to create a consistent snapshot of the btree when
other writers may update the btree before the commit is done.

This changes the snapshot creation to happen during the commit, while
no other updates are possible.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c
fs/btrfs/transaction.c
fs/btrfs/transaction.h