Btrfs: flush data on snapshot creation
authorSage Weil <sage@newdream.net>
Fri, 19 Feb 2010 22:13:50 +0000 (14:13 -0800)
committerChris Mason <chris.mason@oracle.com>
Mon, 15 Mar 2010 15:00:11 +0000 (11:00 -0400)
commit0bdb1db297ab36865a63ee722d35ff0a1f0ae522
treebd30183300d2ceaa35db1ab59adacf89e8e19d1a
parentbd4d10888990f7e3f8029205d27eb155202d6969
Btrfs: flush data on snapshot creation

Flush any delalloc extents when we create a snapshot, so that recently
written file data is always included in the snapshot.

A later commit will add the ability to snapshot without the flush, but
most people expect flushing.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/transaction.c