[PATCH 19/20] Btrfs: log when a bitmap is rejected for a cluster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 fs/btrfs/free-space-cache.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
index 953f7dd..0151274 100644
--- a/fs/btrfs/free-space-cache.c
+++ b/fs/btrfs/free-space-cache.c
@@ -2316,6 +2316,16 @@ again:
 		i = next_zero;
 	}
 
+	if (!found_bits && total_found)
+		printk(KERN_INFO "btrfs: bitmap %llx want:%llx min:%llx cont:%llx start:%llx max:%llx total:%llx\n",
+		       (unsigned long long)entry->offset,
+		       (unsigned long long)bytes,
+		       (unsigned long long)min_bytes,
+		       (unsigned long long)cont1_bytes,
+		       (unsigned long long)(start * block_group->sectorsize),
+		       (unsigned long long)cluster->max_size,
+		       (unsigned long long)(total_found * block_group->sectorsize));
+
 	if (!found_bits)
 		return -ENOSPC;
 
-- 
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux