]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc79aad1e075ffe132f77e109cca7bb64c272ed22
treec001d454533e7d3b262a20ef4b6f2703d5f69b79
parent2fe8d8800a8a61f36de8103498449372b4174ebc
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