]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - mm/nommu.c
mm: make do_mmap_pgoff return populate as a size in bytes, not as a bool
[karo-tx-linux.git] / mm / nommu.c
index 7296a5a280e7d798b10718bf1cd9998fa0f640a3..18c1b932e2c4450de1aa28d8e250420ced267b47 100644 (file)
@@ -1251,7 +1251,7 @@ unsigned long do_mmap_pgoff(struct file *file,
                            unsigned long prot,
                            unsigned long flags,
                            unsigned long pgoff,
-                           bool *populate)
+                           unsigned long *populate)
 {
        struct vm_area_struct *vma;
        struct vm_region *region;
@@ -1261,7 +1261,7 @@ unsigned long do_mmap_pgoff(struct file *file,
 
        kenter(",%lx,%lx,%lx,%lx,%lx", addr, len, prot, flags, pgoff);
 
-       *populate = false;
+       *populate = 0;
 
        /* decide whether we should attempt the mapping, and if so what sort of
         * mapping */