]> git.baikalelectronics.ru Git - kernel.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)
commit3448cb91bde6cb2f9cafa9742af1153e84eeb002
tree574b41c09c2890e7a6eeda18dedb5e37c1aac98c
parent7d954eaee01d1fb2f4bcafa183c5efff4e053ed2
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