On Mon, 07 Feb 2005 10:59:13 +0000
David Howells <[EMAIL PROTECTED]> wrote:

> David S. Miller <[EMAIL PROTECTED]> wrote:
> 
> > > For example, replacing TASK_SIZE in fs/namei.c with "thread->addr_limit" 
> > > would actually clean up the code: it would mean that the games with 
> > > "get_fs()" etc would just go away, to be replaced with something like
> > 
> > I think that looks nice too.
> > 
> > Would you be against a "mm->addr_limit"?  That's what an approach
> > by Paulus implemented, and I was in the camp supporting that kind
> > of direction.
> 
> On the other hand, this value is constant on some archs, and in those cases,
> wouldn't it be better for it to be a compile-time constant?

How can it be constant?  It would need to change when a set_fs(KERNEL_DS)
is performed.

Reply via email to