aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-01-12 16:04:22 -0500
committerChris Mason <chris.mason@oracle.com>2011-01-16 11:30:20 -0500
commitf690efb1aa2a961dd6655529c1797fcac60ad6d9 (patch)
tree29b2faa25ff19a3c374b6bb60eb4507657c6dfa9 /fs/btrfs/extent-tree.c
parent5e540f7715b8cd83b8e60beaaa525b125cc122de (diff)
Btrfs: don't warn if we get ENOSPC in btrfs_block_rsv_check
If we run low on space we could get a bunch of warnings out of btrfs_block_rsv_check, but this is mostly just called via the transaction code to see if we need to end the transaction, it expects to see failures, so let's not WARN and freak everybody out for no reason. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 04bfc3a2bd9f..055b837eab19 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -3727,11 +3727,6 @@ int btrfs_block_rsv_check(struct btrfs_trans_handle *trans,
3727 return 0; 3727 return 0;
3728 } 3728 }
3729 3729
3730 WARN_ON(1);
3731 printk(KERN_INFO"block_rsv size %llu reserved %llu freed %llu %llu\n",
3732 block_rsv->size, block_rsv->reserved,
3733 block_rsv->freed[0], block_rsv->freed[1]);
3734
3735 return -ENOSPC; 3730 return -ENOSPC;
3736} 3731}
3737 3732