All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Gergely Nagy <algernon@debian.org>,
	linux-kernel@vger.kernel.org,
	Marcelo Tosatti <marcelo@conectiva.com.br>,
	Andrew Morton <andrewm@uow.edu.au>
Subject: Re: 2.4.17rc2aa1
Date: Thu, 20 Dec 2001 19:32:58 +0100	[thread overview]
Message-ID: <20011220193258.D1477@athlon.random> (raw)
In-Reply-To: <20011220192255.B1477@athlon.random> <Pine.LNX.4.33.0112201026460.1101-100000@penguin.transmeta.com>
In-Reply-To: <Pine.LNX.4.33.0112201026460.1101-100000@penguin.transmeta.com>; from torvalds@transmeta.com on Thu, Dec 20, 2001 at 10:27:37AM -0800

On Thu, Dec 20, 2001 at 10:27:37AM -0800, Linus Torvalds wrote:
> 
> On Thu, 20 Dec 2001, Andrea Arcangeli wrote:
> > Anyways here the fix (untested as usual :)
> >
> > --- 2.4.17rc2aa1/fs/buffer.c.~1~	Wed Dec 19 03:43:24 2001
> > +++ 2.4.17rc2aa1/fs/buffer.c	Thu Dec 20 19:02:02 2001
> > @@ -2337,7 +2337,7 @@
> >  	struct buffer_head *bh;
> >
> >  	page = find_or_create_page(bdev->bd_inode->i_mapping, index, GFP_NOFS);
> > -	if (IS_ERR(page))
> > +	if (!page)
> 
> Isn't this in 2.4.17 already? Marcelo, please check.

it isn't in 2.4.17-rc2.

> 
> > +++ 2.4.17rc2aa1/mm/filemap.c	Thu Dec 20 19:01:53 2001
> > @@ -942,7 +942,7 @@
> >  	spin_unlock(&pagecache_lock);
> >  	if (!page) {
> >  		struct page *newpage = alloc_page(gfp_mask);
> > -		page = ERR_PTR(-ENOMEM);
> > +		page = NULL;
> 
> Don't be silly, just remove the line (page _is_ NULL already, we just
> checked).

indeed (compiler could optimize it away but nicer code to delete it).

Andrea

  reply	other threads:[~2001-12-20 18:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20011221025857.M1477@athlon.random>
2001-12-19 15:16 ` 2.4.17rc2aa1 Andrea Arcangeli
2001-12-19 20:32   ` 2.4.17rc2aa1 Gergely Nagy
2001-12-19 20:52     ` 2.4.17rc2aa1 Andrea Arcangeli
2001-12-20 18:17       ` 2.4.17rc2aa1 Gergely Nagy
2001-12-21 19:34         ` 2.4.17rc2aa1 Gergely Nagy
2001-12-20 18:22       ` 2.4.17rc2aa1 Andrea Arcangeli
2001-12-20 18:27         ` 2.4.17rc2aa1 Linus Torvalds
2001-12-20 18:32           ` Andrea Arcangeli [this message]
2001-12-20 18:35             ` 2.4.17rc2aa1 Linus Torvalds
2001-12-20 19:28               ` 2.4.17rc2aa1 Christoph Hellwig
2001-12-25 20:22   ` 2.4.17rc2aa1 - blocking(?) in /proc Adam Schrotenboer

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=20011220193258.D1477@athlon.random \
    --to=andrea@suse.de \
    --cc=algernon@debian.org \
    --cc=andrewm@uow.edu.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    --cc=torvalds@transmeta.com \
    /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.