Re: [PATCH 11/14] get_unmapped_area handles MAP_FIXED on ramfs (nommu)

2007-04-04 Thread Benjamin Herrenschmidt
On Wed, 2007-04-04 at 11:16 +0100, David Howells wrote: > Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > - if (!(flags & MAP_SHARED)) > > + /* Deal with MAP_FIXED differently ? Forbid it ? Need help from some > > nommu > > +* folks there... --BenH. > > +*/ > > + if ((flags

Re: [PATCH 11/14] get_unmapped_area handles MAP_FIXED on ramfs (nommu)

2007-04-04 Thread David Howells
Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > - if (!(flags & MAP_SHARED)) > + /* Deal with MAP_FIXED differently ? Forbid it ? Need help from some > nommu > + * folks there... --BenH. > + */ > + if ((flags & MAP_FIXED) || !(flags & MAP_SHARED)) MAP_FIXED on NOMMU? S

[PATCH 11/14] get_unmapped_area handles MAP_FIXED on ramfs (nommu)

2007-04-03 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- fs/ramfs/file-nommu.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) Index: linux-cell/fs/ramfs/file-nommu.c === --- linux-cell.orig/fs/ramfs/file-nommu.c

[PATCH 11/14] get_unmapped_area handles MAP_FIXED on ramfs (nommu)

2007-04-03 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- fs/ramfs/file-nommu.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) Index: linux-cell/fs/ramfs/file-nommu.c === --- linux-cell.orig/fs/ramfs/file-nommu.c