Xiao Guangrong 8233767a22 Btrfs: allocate extent state and check the result properly
It doesn't allocate extent_state and check the result properly:
- in set_extent_bit, it doesn't allocate extent_state if the path is not
  allowed wait

- in clear_extent_bit, it doesn't check the result after atomic-ly allocate,
  we trigger BUG_ON() if it's fail

- if allocate fail, we trigger BUG_ON instead of returning -ENOMEM since
  the return value of clear_extent_bit() is ignored by many callers

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2011-05-23 13:24:41 -04:00
..
2011-05-23 13:05:39 -04:00
2011-05-23 13:05:39 -04:00
2008-09-25 11:04:06 -04:00
2011-03-31 11:26:23 -03:00
2011-03-28 05:37:35 -04:00
2011-05-23 13:24:41 -04:00
2010-12-22 23:15:47 +08:00
2010-12-22 23:15:47 +08:00
2011-03-31 11:26:23 -03:00
2011-05-23 13:24:41 -04:00