From: green Date: Fri, 1 Apr 2005 15:00:52 +0000 (+0000) Subject: b=6000 X-Git-Tag: v1_8_0_110~486^7~75 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c9205c9f3e03b7793ce9d041b0bfced3688dc17d;p=fs%2Flustre-release.git b=6000 Do not search any VMAs in NULL mm. Fixes NFS exporting problems for HP. --- diff --git a/lustre/llite/llite_mmap.c b/lustre/llite/llite_mmap.c index 41438d6..e4d6670 100644 --- a/lustre/llite/llite_mmap.c +++ b/lustre/llite/llite_mmap.c @@ -283,6 +283,10 @@ static struct vm_area_struct * our_vma(unsigned long addr, size_t count) struct vm_area_struct *vma, *ret = NULL; ENTRY; + /* No MM (e.g. NFS)? No vmas too. */ + if (!mm) + RETURN(NULL); + spin_lock(&mm->page_table_lock); for(vma = find_vma(mm, addr); vma != NULL && vma->vm_start < (addr + count); vma = vma->vm_next) {