* question about nommu.c
@ 2009-08-13 19:41 Julia Lawall
2009-08-13 19:57 ` Paul Mundt
0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2009-08-13 19:41 UTC (permalink / raw)
To: linux-mm
The function vmalloc_user in the file mm/nommu.c contains the following
code:
struct vm_area_struct *vma;
...
if (vma)
vma->vm_flags |= VM_USERMAP;
The constant VM_USERMAP, however, is elsewhere used in a structure of type
vm_struct, not vm_area_struct. Furthermore, the value of VM_USERMAP is 8,
which is the same as the value of VM_SHARED (define in mm.h), which is
elsewhere used with a vm_area_struct structure. Is this occurrence of
VM_USERMAP correct? Or should it be VM_SHARED? Or should it be something
else?
julia
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question about nommu.c
2009-08-13 19:41 question about nommu.c Julia Lawall
@ 2009-08-13 19:57 ` Paul Mundt
2009-08-13 20:32 ` Julia Lawall
0 siblings, 1 reply; 3+ messages in thread
From: Paul Mundt @ 2009-08-13 19:57 UTC (permalink / raw)
To: Julia Lawall; +Cc: linux-mm
On Thu, Aug 13, 2009 at 09:41:38PM +0200, Julia Lawall wrote:
> The function vmalloc_user in the file mm/nommu.c contains the following
> code:
>
> struct vm_area_struct *vma;
> ...
> if (vma)
> vma->vm_flags |= VM_USERMAP;
>
> The constant VM_USERMAP, however, is elsewhere used in a structure of type
> vm_struct, not vm_area_struct. Furthermore, the value of VM_USERMAP is 8,
> which is the same as the value of VM_SHARED (define in mm.h), which is
> elsewhere used with a vm_area_struct structure. Is this occurrence of
> VM_USERMAP correct? Or should it be VM_SHARED? Or should it be something
> else?
>
Yes, this is currently broken, albeit generally harmless. I've been
working on cleaning this up, but have not gotten around to posting
patches yet.
Part of this requires building on top of the infrastructure we have in
place with the vm_regions to layer a proper vmap implementation on top
of, which should in turn restore some meaning to the vmlist and permit
struct vm_struct to be used on nommu properly.
At the moment this is not a big problem as it doesn't really impact
anything, it's more regarding future directions for the nommu memory
management code.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question about nommu.c
2009-08-13 19:57 ` Paul Mundt
@ 2009-08-13 20:32 ` Julia Lawall
0 siblings, 0 replies; 3+ messages in thread
From: Julia Lawall @ 2009-08-13 20:32 UTC (permalink / raw)
To: Paul Mundt; +Cc: linux-mm
On Fri, 14 Aug 2009, Paul Mundt wrote:
> On Thu, Aug 13, 2009 at 09:41:38PM +0200, Julia Lawall wrote:
> > The function vmalloc_user in the file mm/nommu.c contains the following
> > code:
> >
> > struct vm_area_struct *vma;
> > ...
> > if (vma)
> > vma->vm_flags |= VM_USERMAP;
> >
> > The constant VM_USERMAP, however, is elsewhere used in a structure of type
> > vm_struct, not vm_area_struct. Furthermore, the value of VM_USERMAP is 8,
> > which is the same as the value of VM_SHARED (define in mm.h), which is
> > elsewhere used with a vm_area_struct structure. Is this occurrence of
> > VM_USERMAP correct? Or should it be VM_SHARED? Or should it be something
> > else?
> >
> Yes, this is currently broken, albeit generally harmless. I've been
> working on cleaning this up, but have not gotten around to posting
> patches yet.
>
> Part of this requires building on top of the infrastructure we have in
> place with the vm_regions to layer a proper vmap implementation on top
> of, which should in turn restore some meaning to the vmlist and permit
> struct vm_struct to be used on nommu properly.
>
> At the moment this is not a big problem as it doesn't really impact
> anything, it's more regarding future directions for the nommu memory
> management code.
OK, perhaps I should just let you clean it up in a more general way then.
julia
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-13 20:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-13 19:41 question about nommu.c Julia Lawall
2009-08-13 19:57 ` Paul Mundt
2009-08-13 20:32 ` Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox