]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add WARN_ON() to check is space_info op current
authorZhao Lei <zhaolei@cn.fujitsu.com>
Tue, 24 Feb 2015 12:07:44 +0000 (20:07 +0800)
committerChris Mason <clm@fb.com>
Mon, 13 Apr 2015 14:27:35 +0000 (07:27 -0700)
commitf7b8144f60574e9df4261a224113dd8978367a6c
treebfb706643c6d3c6e7e986ad5a45741d186207490
parent87d1518ce30ddaa91f7e605810cde78796db4114
btrfs: add WARN_ON() to check is space_info op current

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 <dsterba@suse.cz>

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c