From: Mathieu Chouquet-Stringer <mathieu@csetco.com>
To: Josef Bacik <josef@redhat.com>
Cc: dave@jikos.cz, linux-btrfs@vger.kernel.org
Subject: Re: Btrfs bug with g38867a2 and a question
Date: Thu, 22 Sep 2011 17:16:33 +0200 [thread overview]
Message-ID: <20110922151633.GA16391@kashmir> (raw)
In-Reply-To: <4E7B423C.2080007@redhat.com>
On Thu, Sep 22, 2011 at 10:12:12AM -0400, Josef Bacik wrote:
> Well that is from the tree logging code, so give this a whirl. It's
> going to dump a lot of info so make sure you capture everything before
> the --- cut here --- line. Thanks,
The patch doesn't apply cleanly to the latest git (since my laptop
doesn't boot anymore, I'm using a different host to compile this) but it
was simple enough to patch manually. Right now I'm on v3.1-rc7-d93dc5c.
I'm compiling at the moment, so bear with me! :-)
My patch looks like this:
--- fs/btrfs/free-space-cache.c.orig 2011-09-22 11:51:46.442129324 +0200
+++ fs/btrfs/free-space-cache.c 2011-09-22 17:11:46.715162968 +0200
@@ -381,6 +381,8 @@ int __load_free_space_cache(struct btrfs
}
if (entry->type == BTRFS_FREE_SPACE_EXTENT) {
+ printk(KERN_ERR "adding extent [%llu-%llu]\n",
+ e->offset, e->bytes);
spin_lock(&ctl->tree_lock);
ret = link_free_space(ctl, e);
spin_unlock(&ctl->tree_lock);
@@ -402,6 +404,8 @@ int __load_free_space_cache(struct btrfs
page_cache_release(page);
goto free_cache;
}
+ printk(KERN_ERR "adding bitmap [%llu-%llu]\n",
+ e->offset, e->bytes);
spin_lock(&ctl->tree_lock);
ret = link_free_space(ctl, e);
ctl->total_bitmaps++;
--
Mathieu Chouquet-Stringer mathieu@csetco.com
The sun itself sees not till heaven clears.
-- William Shakespeare --
next prev parent reply other threads:[~2011-09-22 15:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-21 18:53 Btrfs bug with g38867a2 and a question Mathieu Chouquet-Stringer
2011-09-21 20:18 ` Josef Bacik
2011-09-21 20:35 ` Mathieu Chouquet-Stringer
2011-09-21 23:10 ` David Sterba
2011-09-22 10:13 ` Mathieu Chouquet-Stringer
2011-09-22 11:05 ` David Sterba
2011-09-22 11:35 ` Mathieu Chouquet-Stringer
[not found] ` <CALiWzOg8CQJF7OfMex1uJTa+doDZ8oufV1nAbos99Z4ev-+xKg@mail.gmail.com>
2011-09-22 14:12 ` Josef Bacik
2011-09-22 15:16 ` Mathieu Chouquet-Stringer [this message]
2011-09-22 18:22 ` Mathieu Chouquet-Stringer
2011-09-22 19:00 ` Josef Bacik
2011-09-22 19:30 ` Mathieu Chouquet-Stringer
2011-09-22 20:32 ` Mathieu Chouquet-Stringer
2011-09-23 12:55 ` Mathieu Chouquet-Stringer
2011-09-23 14:49 ` Josef Bacik
2011-09-23 15:31 ` Mathieu Chouquet-Stringer
2011-09-23 15:34 ` Josef Bacik
2011-09-23 17:16 ` Mathieu Chouquet-Stringer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110922151633.GA16391@kashmir \
--to=mathieu@csetco.com \
--cc=dave@jikos.cz \
--cc=josef@redhat.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.