]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Consistently use page_shift in sysdeps/unix/sysv/linux/mmap64.c.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 28 Jun 2013 21:45:11 +0000 (21:45 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 28 Jun 2013 21:45:11 +0000 (21:45 +0000)
ChangeLog
sysdeps/unix/sysv/linux/mmap64.c

index 8d81f2d03e2b26e666f28345ad2dd98698761244..f3da5170473de6d7e407a78eb27d96c6705bc389 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-28  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
+       instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
+
 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
 
        [BZ #12492]
index 175e4abba1023841fd446c5458445f4c8772b9ad..e2dcdc4d9abe4acb326777b1556546df744018f3 100644 (file)
@@ -56,7 +56,7 @@ __mmap64 (void *addr, size_t len, int prot, int flags, int fd, off64_t offset)
   result = (void *)
     INLINE_SYSCALL (mmap2, 6, addr,
                    len, prot, flags, fd,
-                   (off_t) (offset >> MMAP2_PAGE_SHIFT));
+                   (off_t) (offset >> page_shift));
   return result;
 }
 weak_alias (__mmap64, mmap64)