From: Vijayan Prabhakaran <pvijayan@gmail.com>
To: Chris Mason <mason@suse.com>
Cc: reiser@namesys.com, vijayan@cs.wisc.edu, reiserfs-list@namesys.com
Subject: Re: Bug in data journaling patch ?!
Date: Mon, 16 Aug 2004 11:23:54 -0500 [thread overview]
Message-ID: <d68fdf7d040816092378a16ee9@mail.gmail.com> (raw)
In-Reply-To: <1092672478.12138.245.camel@watt.suse.com>
Yes, this happens only on the first transaction after the mount. For
all other later transactions it works fine.
thanks,
vijayan
On Mon, 16 Aug 2004 12:07:59 -0400, Chris Mason <mason@suse.com> wrote:
> On Mon, 2004-08-16 at 11:47, Vijayan Prabhakaran wrote:
>
> > Bug description:
> > ------------------
> > In journal.c there is a function called do_journal_end(). There is
> > line in that function that initializes commit_trans_id. It looks like:
> >
> > commit_trans_id = jl->j_trans_id;
> >
> > The value of jl->j_trans_id was 0 (this could be due to some memset()).
> >
>
> This would indeed be a bug, but it's not clear how jl->j_trans_id
> becomes zero.
>
> A little farther down in do_journal_end, we set
> SB_JOURNAL()->j_current_jl->j_trans_id to the transaction id of the next
> transaction. It should be impossible for it to ever be zero.
>
> The only exception looks like the very first transaction for each
> mount. The journal_init function doesn't set j_current_jl->j_trans_id
> to a non-zero value.
>
> Can you confirm that you're only seeing this problem on the first
> transaction?
>
> -chris
>
>
next prev parent reply other threads:[~2004-08-16 16:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <d68fdf7d04081608477fc84e06@mail.gmail.com>
2004-08-16 16:07 ` Bug in data journaling patch ?! Chris Mason
2004-08-16 16:23 ` Vijayan Prabhakaran [this message]
2004-08-17 13:01 ` Chris Mason
2004-08-14 17:45 Vijayan Prabhakaran
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=d68fdf7d040816092378a16ee9@mail.gmail.com \
--to=pvijayan@gmail.com \
--cc=mason@suse.com \
--cc=reiser@namesys.com \
--cc=reiserfs-list@namesys.com \
--cc=vijayan@cs.wisc.edu \
/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.