]> Pileus Git - ~andy/linux/blobdiff - drivers/staging/android/ashmem.c
staging: ashmem: Fix ASHMEM_PURGE_ALL_CACHES return value
[~andy/linux] / drivers / staging / android / ashmem.c
index db5325c88f1cb494a08d846e5f9a1d859fad00e4..23948f16701206926ec9a76ce347641316d692c5 100644 (file)
@@ -777,7 +777,7 @@ static long ashmem_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                                .gfp_mask = GFP_KERNEL,
                                .nr_to_scan = LONG_MAX,
                        };
-
+                       ret = ashmem_shrink_count(&ashmem_shrinker, &sc);
                        nodes_setall(sc.nodes_to_scan);
                        ashmem_shrink_scan(&ashmem_shrinker, &sc);
                }