btrfs: replace many BUG_ONs with proper error handling
authorJeff Mahoney <jeffm@suse.com>
Mon, 12 Mar 2012 15:03:00 +0000 (16:03 +0100)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 10:52:54 +0000 (11:52 +0100)
 btrfs currently handles most errors with BUG_ON. This patch is a work-in-
 progress but aims to handle most errors other than internal logic
 errors and ENOMEM more gracefully.

 This iteration prevents most crashes but can run into lockups with
 the page lock on occasion when the timing "works out."

Signed-off-by: Jeff Mahoney <jeffm@suse.com>

No differences found