From patchwork Sat Jan 30 12:09:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yan, Zheng" X-Patchwork-Id: 75885 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o0UC9WKY028458 for ; Sat, 30 Jan 2010 12:09:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751409Ab0A3MJa (ORCPT ); Sat, 30 Jan 2010 07:09:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751355Ab0A3MJa (ORCPT ); Sat, 30 Jan 2010 07:09:30 -0500 Received: from mail-pz0-f172.google.com ([209.85.222.172]:39165 "EHLO mail-pz0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751104Ab0A3MJ3 convert rfc822-to-8bit (ORCPT ); Sat, 30 Jan 2010 07:09:29 -0500 Received: by pzk2 with SMTP id 2so2502619pzk.21 for ; Sat, 30 Jan 2010 04:09:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=c9AQPEPK4zpD7Meu2tIW0+0WPapz4mOQcTjkZ4foMpY=; b=LMpaWSi8SI6s9Yd8PlX52/XC1dORanC5O1Z5XgD2qIahbLwTHzfulzXhsVcUqSf7tv qRoiPnOnIkNQDwpm2B8s93cdv8QxisC8hy3mVEUULf3oHybR+2rdnwhUWkxwvBjymLbC VARJ7PMUodIb20lLFwP0WAJmeIQKJbiFpppMU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=f5JaIzXQwM0v/tmjRHooA/FYJpG3VR1NCBxOnnbfUKgx5TvRXHC/uGobh6f28HKRhu ZIVo7kNQK0UuA0hjCRQ0XSTKXvcy4iveslb8LUStMwYsrR9aM889cXwT/0k7QOJikqsJ 3uB9quhsILY3LSsHU5IE5woPT6Ya//lXhjSug= MIME-Version: 1.0 Received: by 10.114.29.18 with SMTP id c18mr1431470wac.17.1264853368767; Sat, 30 Jan 2010 04:09:28 -0800 (PST) In-Reply-To: <4B63CC39.1020505@gmail.com> References: <4B63CC39.1020505@gmail.com> Date: Sat, 30 Jan 2010 20:09:28 +0800 X-Google-Sender-Auth: 4baee9b1c0fd5cbd Message-ID: <3d0408631001300409i13326d13vac10a3f639f6db92@mail.gmail.com> Subject: Re: panic during rebalance, and now upon mount From: "Yan, Zheng " To: Troy Ablan Cc: linux-btrfs@vger.kernel.org Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 30 Jan 2010 12:09:33 +0000 (UTC) diff -urp 1/fs/btrfs/extent-tree.c 2/fs/btrfs/extent-tree.c --- 1/fs/btrfs/extent-tree.c 2010-01-22 12:16:34.203525744 +0800 +++ 2/fs/btrfs/extent-tree.c 2010-01-30 20:03:23.609292953 +0800 @@ -5373,8 +5373,18 @@ static noinline int walk_up_proc(struct if (wc->flags[level] & BTRFS_BLOCK_FLAG_FULL_BACKREF) parent = eb->start; else - BUG_ON(root->root_key.objectid != - btrfs_header_owner(eb)); + if (root->root_key.objectid != + btrfs_header_owner(eb)) { + printk("root %llu %llu\n", + root->root_key.objectid, + root->root_key.offset); + printk("node %llu refs %llu flags %llu owner %llu reloc %d\n", + eb->start, wc->refs[level], wc->flags[level], + btrfs_header_owner(eb), + btrfs_header_flag(eb, BTRFS_HEADER_FLAG_RELOC)); + + BUG(); + } } else { if (wc->flags[level + 1] & BTRFS_BLOCK_FLAG_FULL_BACKREF) parent = path->nodes[level + 1]->start; @@ -5496,6 +5506,8 @@ int btrfs_drop_snapshot(struct btrfs_roo sizeof(wc->update_progress)); } else { btrfs_disk_key_to_cpu(&key, &root_item->drop_progress); + printk("drop progress %llu %d %llu\n", key.objectid, + key.type, key.offset); memcpy(&wc->update_progress, &key, sizeof(wc->update_progress)); -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in