]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Btrfs: fix what bits we clear when erroring out from delalloc
authorJosef Bacik <jbacik@fusionio.com>
Mon, 29 Jul 2013 17:22:24 +0000 (13:22 -0400)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:04:39 +0000 (08:04 -0400)
commit151a41bc46df2a9cb5e05c3b3265cedc1f65a86f
tree574b41c09c2890e7a6eeda18dedb5e37c1aac98c
parentc2790a2e2bc824084717fde031a8e0d370fc8650
Btrfs: fix what bits we clear when erroring out from delalloc

First of all we no longer set EXTENT_DIRTY when we dirty an extent so this patch
removes the clearing of EXTENT_DIRTY since it confuses me.  This patch also adds
clearing EXTENT_DEFRAG and also doing EXTENT_DO_ACCOUNTING when we have errors.
This is because if we are clearing delalloc without adding an ordered extent
then we need to make sure the enospc handling stuff is accounted for.  Also if
this range was DEFRAG we need to make sure that bit is cleared so we dont leak
it.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/inode.c