]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Wed, 14 Nov 2012 16:24:33 +0000 (08:24 -0800)
commit98b1d566ccb4e64a877057a0fb08179876685178
treeeb64c5b9acb621c0b95990b5e57a058b17f640d1
parent99974d0015dd3690945598a06cec5cc23e2ef0e2
btrfs: replace many BUG_ONs with proper error handling

 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>
(cherry picked from commit 79787eaab46121d4713ed03c8fc63b9ec3eaec76)

Conflicts:

fs/btrfs/ctree.c
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/file.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/relocation.c

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
23 files changed:
fs/btrfs/compression.c
fs/btrfs/ctree.c
fs/btrfs/delayed-inode.c
fs/btrfs/dir-item.c
fs/btrfs/disk-io.c
fs/btrfs/export.c
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/file-item.c
fs/btrfs/file.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode-item.c
fs/btrfs/inode-map.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/orphan.c
fs/btrfs/relocation.c
fs/btrfs/root-tree.c
fs/btrfs/scrub.c
fs/btrfs/super.c
fs/btrfs/transaction.c
fs/btrfs/tree-log.c
fs/btrfs/volumes.c