On Tue, 01 Sep 2009, Hugh Dickins wrote: snip > > Sorry, no, I disagree. > > I agree that the fs/hugetlbfs/inode.c:941 message and backtrace in > themselves are symptoms of the can_do_hugetlb_shm() bug that Mel > reported and fixed (I'm agreeing a little too readily, I've not > actually studied that bug and fix, I'm taking it on trust). > > But that does not explain how last year's openSUSE 11.1 userspace > was trying for a MAP_HUGETLB mapping at startup on PowerPC (but > not on x86), while you're only introducing MAP_HUGETLB now. > > That is explained by you #defining MAP_HUGETLB in include/asm-generic/ > mman-common.h to a number which is already being used for other MAP_s > on some architectures. That's a separate bug which needs to be fixed > by distributing the MAP_HUGETLB definition across various asm*/mman.h. > > Hugh > Would it be okay to keep the define in include/asm-generic/mman.h if a value that is known free across all architectures is used? 0x080000 is not used by any arch and, AFAICT would work just as well. -- Eric B Munson IBM Linux Technology Center ebmunson@us.ibm.com