]> Git Repo - linux.git/blobdiff - mm/vmscan.c
mm, slab: shorten kmalloc cache names for large sizes
[linux.git] / mm / vmscan.c
index c5ef7240cbcbba05b4ef759b3c05d1ffdb163369..961401c46334cf815b1d92d7755314577aabd3e2 100644 (file)
@@ -2456,9 +2456,11 @@ out:
                        /*
                         * Scan types proportional to swappiness and
                         * their relative recent reclaim efficiency.
+                        * Make sure we don't miss the last page
+                        * because of a round-off error.
                         */
-                       scan = div64_u64(scan * fraction[file],
-                                        denominator);
+                       scan = DIV64_U64_ROUND_UP(scan * fraction[file],
+                                                 denominator);
                        break;
                case SCAN_FILE:
                case SCAN_ANON:
This page took 0.031372 seconds and 4 git commands to generate.