]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: do not release metadata for space cache inodes
authorJosef Bacik <jbacik@fusionio.com>
Fri, 27 Sep 2013 18:57:43 +0000 (14:57 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:53:36 +0000 (21:53 -0500)
commit02fa6783366b9d4bd28259c05a6b909a236f82bf
treebd5ce42326af0959a1839f9582c76df68bf3e6d0
parenta6e55750142b0550c707d47dd893f1f7ee0d2b66
Btrfs: do not release metadata for space cache inodes

I've been testing our error paths and I was tripping the BUG_ON() in
drop_outstanding_extent because our outstanding_extents is 0 for space cache
inodes.  This is because we don't reserve metadata space for these inodes since
we depend on the global block reserve for our space.  To fix this we need to
make sure the DO_ACCOUNTING stuff doesn't actually call release_metadata for
space cache inodes.  With this patch I'm no longer panicing.  Thanks,

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