From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.4.27-rc1
Date: Sun, 20 Jun 2004 16:34:04 -0300 [thread overview]
Message-ID: <20040620193404.GA7102@logos.cnet> (raw)
In-Reply-To: <Pine.GSO.4.58.0406201910300.23356@waterleaf.sonytel.be>
Hi Geert!
On Sun, Jun 20, 2004 at 07:16:40PM +0200, Geert Uytterhoeven wrote:
> On Sat, 19 Jun 2004, Marcelo Tosatti wrote:
> > Marcelo Tosatti:
> > o journal_try_to_free_buffers(): Add debug print in case of bh list corruption
>
> Which introduced 4 warnings. Here's a fix:
>
> --- linux-2.4.27-rc1/fs/jbd/transaction.c.orig 2004-06-20 13:04:20.000000000 +0200
> +++ linux-2.4.27-rc1/fs/jbd/transaction.c 2004-06-20 19:08:07.000000000 +0200
> @@ -1700,11 +1700,11 @@ void debug_page(struct page *p)
>
> bh = p->buffers;
>
> - printk(KERN_ERR "%s: page index:%u count:%d flags:%x\n", __FUNCTION__,
> + printk(KERN_ERR "%s: page index:%lu count:%d flags:%lx\n", __FUNCTION__,
> p->index, atomic_read(&p->count), p->flags);
>
> while (bh) {
> - printk(KERN_ERR "%s: bh b_next:%p blocknr:%u b_list:%u state:%x\n",
> + printk(KERN_ERR "%s: bh b_next:%p blocknr:%lu b_list:%u state:%lx\n",
> __FUNCTION__, bh->b_next, bh->b_blocknr, bh->b_list,
> bh->b_state);
> bh = bh->b_this_page;
Right.
> And now I just looked at the original patch:
>
> | --- linux-2.4.26/fs/jbd/transaction.c 2004-02-18 13:36:31.000000000 +0000
> | +++ linux-2.4.27-rc1/fs/jbd/transaction.c 2004-06-19 23:37:33.000000000 +0000
> | @@ -1752,6 +1769,11 @@ int journal_try_to_free_buffers(journal_
> | do {
> | struct buffer_head *p = tmp;
> |
> | + if (!unlikely(tmp)) {
> ^^^^^^^^^^^^^^
> Shouldn't this be `unlikely(!tmp))'?
The original works, but thats cleaner as Willy also pointed out.
I'll fix those.
Thanks!
prev parent reply other threads:[~2004-06-20 19:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-20 0:45 Linux 2.4.27-rc1 Marcelo Tosatti
2004-06-20 17:16 ` Geert Uytterhoeven
2004-06-20 19:34 ` Marcelo Tosatti [this message]
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=20040620193404.GA7102@logos.cnet \
--to=marcelo.tosatti@cyclades.com \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox