From: Liu Bo Date: Wed, 17 Jun 2015 08:59:58 +0000 (+0800) Subject: Btrfs: fix warning of bytes_may_use X-Git-Tag: omap-for-v4.2/fixes-rc2-v2~20^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddba1bfc2369cd0566bcfdab47599834a32d1c19;p=pandora-kernel.git Btrfs: fix warning of bytes_may_use While running generic/019, dmesg got several warnings from btrfs_free_reserved_data_space(). Test generic/019 produces some disk failures so sumbit dio will get errors, in which case, btrfs_direct_IO() goes to the error handling and free bytes_may_use, but the problem is that bytes_may_use has been free'd during get_block(). This adds a runtime flag to show if we've gone through get_block(), if so, don't do the cleanup work. Signed-off-by: Liu Bo Reviewed-by: Filipe Manana Tested-by: Filipe Manana Signed-off-by: Chris Mason --- Reading git-diff-tree failed