From: Filipe Manana Date: Thu, 30 Apr 2015 16:47:05 +0000 (+0100) Subject: Btrfs: fix mutex unlock without prior lock on space cache truncation X-Git-Tag: omap-for-v4.2/fixes-rc1^2~69^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35c766425adc8e6cd1bdc8554fa540364f218fb7;p=pandora-kernel.git Btrfs: fix mutex unlock without prior lock on space cache truncation If the call to btrfs_truncate_inode_items() failed and we don't have a block group, we were unlocking the cache_write_mutex without having locked it (we do it only if we have a block group). Fixes: 1bbc621ef284 ("Btrfs: allow block group cache writeout outside critical section in commit") Signed-off-by: Filipe Manana Reviewed-by: David Sterba Signed-off-by: Chris Mason --- Reading git-diff-tree failed