]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Btrfs: handle not finding the extent exactly when logging changed extents
authorJosef Bacik <jbacik@fusionio.com>
Wed, 19 Sep 2012 19:42:38 +0000 (15:42 -0400)
committerChris Mason <chris.mason@fusionio.com>
Thu, 4 Oct 2012 13:40:03 +0000 (09:40 -0400)
commit49d07bac90965b653055f1703db90e0241e8d86e
treed160ead3a525b7de2911b3efee77c54df6a789ab
parent13c178c1f5ed561ecf7c364fce22db3237a21cb5
Btrfs: handle not finding the extent exactly when logging changed extents

I started hitting warnings when running xfstest 68 in a loop because there
were EM's that were not lined up properly with the physical extents.  This
is ok, if we do something like punch a hole or write to a preallocated space
or something like that we can have an EM that doesn't cover the entire
physical extent.  So fix the tree logging stuff to cope with this case so we
don't just commit the transaction.  With this patch I no longer see the
warnings from the tree logging code.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/tree-log.c