diff options
author | Josef Bacik <jbacik@redhat.com> | 2008-11-17 21:12:00 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-11-17 21:12:00 -0500 |
commit | 4ce4cb526f67775c1cce3e3fa01c292672ba874e (patch) | |
tree | 5aa9758857e1fef5eb2b8559c3d075f60f7075b0 /fs/btrfs/extent-tree.c | |
parent | e3e469f86eebb1b3364c118add362d00c6cff956 (diff) |
Btrfs: Add some debugging around the ENOSPC bugs
Some people are still reporting problems with early enospc. This
will help narrown down the cause.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 6c29669d81a2..b0f2241274fd 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -2984,6 +2984,9 @@ loop_check: | |||
2984 | *last_ptr = ins->objectid + ins->offset; | 2984 | *last_ptr = ins->objectid + ins->offset; |
2985 | ret = 0; | 2985 | ret = 0; |
2986 | } else if (!ret) { | 2986 | } else if (!ret) { |
2987 | printk(KERN_ERR "we were searching for %Lu bytes, num_bytes %Lu," | ||
2988 | " loop %d, allowed_alloc %d\n", total_needed, num_bytes, | ||
2989 | loop, allowed_chunk_alloc); | ||
2987 | ret = -ENOSPC; | 2990 | ret = -ENOSPC; |
2988 | } | 2991 | } |
2989 | 2992 | ||