Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ce4cb52 authored by Josef Bacik's avatar Josef Bacik Committed by Chris Mason
Browse files

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: default avatarChris Mason <chris.mason@oracle.com>
parent e3e469f8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2984,6 +2984,9 @@ static int noinline find_free_extent(struct btrfs_trans_handle *trans,
			*last_ptr = ins->objectid + ins->offset;
		ret = 0;
	} else if (!ret) {
		printk(KERN_ERR "we were searching for %Lu bytes, num_bytes %Lu,"
		       " loop %d, allowed_alloc %d\n", total_needed, num_bytes,
		       loop, allowed_chunk_alloc);
		ret = -ENOSPC;
	}