Whamcloud - gitweb
land v0.9.1 on HEAD, in preparation for a 1.0.x branch
[fs/lustre-release.git] / lustre / kernel_patches / patches / uml-2.4.20-do_mmap_pgoff-fix.patch
diff --git a/lustre/kernel_patches/patches/uml-2.4.20-do_mmap_pgoff-fix.patch b/lustre/kernel_patches/patches/uml-2.4.20-do_mmap_pgoff-fix.patch
new file mode 100644 (file)
index 0000000..844d735
--- /dev/null
@@ -0,0 +1,16 @@
+ arch/i386/kernel/sys_i386.c |    2 +-
+ 1 files changed, 1 insertion(+), 1 deletion(-)
+
+--- linux-2.4.20-vanilla/arch/i386/kernel/sys_i386.c~uml-2.4.20-do_mmap_pgoff-fix      2001-03-19 23:35:09.000000000 +0300
++++ linux-2.4.20-vanilla-alexey/arch/i386/kernel/sys_i386.c    2003-09-15 10:26:19.000000000 +0400
+@@ -56,7 +56,7 @@ static inline long do_mmap2(
+       }
+       down_write(&current->mm->mmap_sem);
+-      error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff);
++      error = do_mmap_pgoff(current->mm, file, addr, len, prot, flags, pgoff);
+       up_write(&current->mm->mmap_sem);
+       if (file)
+
+_