From: Xiao Guangrong Date: Wed, 20 Apr 2011 06:44:57 +0000 (+0000) Subject: Btrfs: allocate extent state and check the result properly X-Git-Tag: v3.0-rc1~38^2~5^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8233767a227ac5843f1023b88c7272a7b5058f5f;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed