[PATCH] btrfs-progs: fix invalid assert in backref.c

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

 



This should be verify'ing that we have an empty key, not that we have a
filled out key.

Signed-off-by: Josef Bacik <jbacik@xxxxxx>
---
Dave this is on top of your ext/jeffm/extent-cache branch and fixes the segfault
you reported.

 backref.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backref.c b/backref.c
index 8fc0fae779f2..8615f6b8677a 100644
--- a/backref.c
+++ b/backref.c
@@ -465,7 +465,7 @@ static int __add_missing_keys(struct btrfs_fs_info *fs_info,
 
 		ASSERT(ref->root_id);
 		ASSERT(!ref->parent);
-		ASSERT(ref->key_for_search.type);
+		ASSERT(!ref->key_for_search.type);
 		BUG_ON(!ref->wanted_disk_byte);
 		eb = read_tree_block(fs_info, ref->wanted_disk_byte, 0);
 		if (!extent_buffer_uptodate(eb)) {
-- 
2.7.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