linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@transmeta.com>
To: Ingo Molnar <mingo@chiara.csoma.elte.hu>
Cc: MM mailing list <linux-mm@kvack.org>, linux-kernel@vger.rutgers.edu
Subject: Re: [patch] zoned-2.3.28-K4
Date: Thu, 18 Nov 1999 19:57:58 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.10.9911181946030.4569-100000@penguin.transmeta.com> (raw)
In-Reply-To: <Pine.LNX.4.10.9911172042220.5725-100000@chiara.csoma.elte.hu>

[ Ok, back from comdex, looking through my horrible backlog of email.. ]

On Wed, 17 Nov 1999, Ingo Molnar wrote:
> 
> the latest patchset is at:
> 
> 	http://www.redhat.com/~mingo/zoned-2.3.28-K4

Ugh. I don't like some of this:

 - the "task->refcount" thing is just silly, considering that any
   architecture that uses pages for task allocation would have been better
   off just using the memory management refcount like we used to.

   Why not do this by just doing a per-architecture "get_task_struct()"
   and "put_task_struct()", to go with the already existing "alloc" and
   "free" functionality?

   Thus, on the 99% of all machines where the page allocator already does
   the work for us, we'd just have

		#define get_task_struct(tsk) \
			atomic_inc(&mem_map[MAP_NR(tsk)].count)
		#define put_task_struct(tsk) \
			free_task_struct(tsk)

   which is just obviously right and cleans up the need to have that silly
   refcount. Then ARM can just have a refcount in its own definition of
   get_task_struct() and friends in task->thread.refcount..

 - I don't see the reason for renaming page_address() to page_vaddr()?

 - "flush_cache_all()" etc in "pgalloc.h"? Senseless. I can see pgalloc.h
   containing the page table allocation routines. But why did you move the
   other stuff there? Looks like a cut-and-paste bug to me. Why a new
   header file at all?

Would you mind explaining or re-doing?

		Linus

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

      reply	other threads:[~1999-11-19  3:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-17 19:46 Ingo Molnar
1999-11-19  3:57 ` Linus Torvalds [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=Pine.LNX.4.10.9911181946030.4569-100000@penguin.transmeta.com \
    --to=torvalds@transmeta.com \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=linux-mm@kvack.org \
    --cc=mingo@chiara.csoma.elte.hu \
    /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