Re: [RFC] [PATCH] hugetlbfs :shmget with SHM_HUGETLB only works as root

2007-11-14 Thread aglitke
Hi Ciju: I am still not exactly sure why this patch is needed. As I read user_shm_lock(): > lock_limit = current->signal->rlim[RLIMIT_MEMLOCK].rlim_cur; > if (lock_limit == RLIM_INFINITY) > allowed = 1; > lock_limit >>= PAGE_SHIFT; > spin_lock(&shmlock_user_lock); > if (!allowed && > l

Re: [PATCH] mm/memory.c follow_hugetlb_page compiler error (MMOTM)

2007-11-12 Thread aglitke
Argh. Who runs with CONFIG_HUGETLB_PAGE not set anyway ;) Acked-by: Adam Litke <[EMAIL PROTECTED]> On Sat, 2007-11-10 at 19:54 -0500, Erez Zadok wrote: > Using http://userweb.kernel.org/~akpm/mmotm/ timestamped "10-Nov-2007 > 22:46". CONFIG_HUGETLB_PAGE not set. > > $ make > CC mm/memory

Re: problem in follow_hugetlb_page on ppc64 architecture with get_user_pages

2007-11-06 Thread aglitke
Please try this patch and see if it helps. commit 6decbd17d6fb70d50f6db2c348bb41d7246a67d1 Author: Adam Litke <[EMAIL PROTECTED]> Date: Tue Nov 6 06:59:12 2007 -0800 hugetlb: follow_hugetlb_page for write access When calling get_user_pages(), a write flag is passed in by the caller