Btrfs: copy everything if we've created an inline extent
authorJosef Bacik <jbacik@fusionio.com>
Thu, 28 Feb 2013 18:23:38 +0000 (13:23 -0500)
committerJosef Bacik <jbacik@fusionio.com>
Thu, 28 Feb 2013 18:33:20 +0000 (13:33 -0500)
commitbdc20e67e82cfc4901d3a5a0d79104b0e2296d83
treec001d454533e7d3b262a20ef4b6f2703d5f69b79
parentfda2832febb1928da0625b2c5d15559b29d7e740
Btrfs: copy everything if we've created an inline extent

I noticed while looking into a tree logging bug that we aren't logging inline
extents properly.  Since this requires copying and it shouldn't happen too often
just force us to copy everything for the inode into the tree log when we have an
inline extent.  With this patch we have valid data after a crash when we write
an inline extent.  Thanks,

Cc: stable@vger.kernel.org
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/inode.c