Btrfs: fix uncheck memory allocations
authorYoshinori Sano <yoshinori.sano@gmail.com>
Tue, 15 Feb 2011 12:01:42 +0000 (12:01 +0000)
committerroot <Chris Mason chris.mason@oracle.com>
Mon, 28 Mar 2011 09:37:49 +0000 (05:37 -0400)
commitdac97e516c617f9c797f64b0224050b70aea30c7
treec5c7e7a40e649ee9beb9014b284d3a6e66fb94f2
parentc622ae6085d0c6ad834213bbf1477eb311359078
Btrfs: fix uncheck memory allocations

To make Btrfs code more robust, several return value checks where memory
allocation can fail are introduced. I use BUG_ON where I don't know how
to handle the error properly, which increases the number of using the
notorious BUG_ON, though.

Signed-off-by: Yoshinori Sano <yoshinori.sano@gmail.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/compression.c
fs/btrfs/extent-tree.c
fs/btrfs/inode.c