mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nick Piggin <npiggin@suse.de>
To: Jason Baron <jbaron@redhat.com>
Cc: Nick Piggin <npiggin@suse.de>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@osdl.org>
Subject: Re: [patch 1/2] x86_64: pageattr use single list
Date: Thu, 19 Jan 2006 15:01:27 +0100	[thread overview]
Message-ID: <20060119140127.GB958@wotan.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.61.0601181437030.6584@dhcp83-105.boston.redhat.com>

On Wed, Jan 18, 2006 at 02:38:11PM -0500, Jason Baron wrote:
> 
> On Wed, 18 Jan 2006, Nick Piggin wrote:
> 
> > Use page->lru.next to implement the singly linked list of pages rather
> > than the struct deferred_page which needs to be allocated and freed for
> > each page.
> > 
> > Signed-off-by: Nick Piggin <npiggin@suse.de>
> > Acked-by: Andi Kleen <ak@suse.de>
> > 
> > Index: linux-2.6/arch/x86_64/mm/pageattr.c
> > ===================================================================
> 
> ...
> 
> > +
> > +	flush_map((dpage && !dpage->lru.next) ? (unsigned long)page_address(dpage) : 0);
> > +	while (dpage) {
> > +		__free_page(dpage);
> > +		dpage = (struct page *)dpage->lru.next;
> >  	} 
> >  } 
> >  
> 
> do you want to be touching a struct page that was just freed?
> 

No, thanks. Good catch.

Nick

  reply	other threads:[~2006-01-19 14:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-18 15:03 [patch 0/2] x86_64: pageattr cleanups Nick Piggin
2006-01-18 15:03 ` [patch 1/2] x86_64: pageattr use single list Nick Piggin
2006-01-18 19:38   ` Jason Baron
2006-01-19 14:01     ` Nick Piggin [this message]
2006-01-18 15:03 ` [patch 2/2] x86_64: pageattr remove __put_page Nick Piggin

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=20060119140127.GB958@wotan.suse.de \
    --to=npiggin@suse.de \
    --cc=akpm@osdl.org \
    --cc=jbaron@redhat.com \
    --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

all inboxes | Powered by JetHome®