[PATCH 5/9] btrfs: add WARN_ON() to check is space_info op current

2015-04-08 Thread Zhaolei
From: Zhao Lei zhao...@cn.fujitsu.com space_info's value calculation is some complex and easy to cause bug, add WARN_ON() to help debug. Changelog v1-v2: Put WARN_ON()s under the ENOSPC_DEBUG mount option. Suggested by: David Sterba dste...@suse.cz Signed-off-by: Zhao Lei

[PATCH 5/9] btrfs: add WARN_ON() to check is space_info op current

2015-04-03 Thread Zhaolei
From: Zhao Lei zhao...@cn.fujitsu.com space_info's value calculation is some complex and easy to cause bug, add WARN_ON() to help debug. Changelog v1-v2: Put WARN_ON()s under the ENOSPC_DEBUG mount option. Suggested by: David Sterba dste...@suse.cz Signed-off-by: Zhao Lei