+Hridya Valsaraju +Suren Baghdasaryan On Thu, Dec 17, 2020 at 11:48 PM Huangzhaoyang <huangzhaoyang@xxxxxxxxx> wrote: > > From: Zhaoyang Huang <zhaoyang.huang@xxxxxxxxxx> > > Add SLAB_RECLAIM_ACCOUNT to ashmem_range cache since it has registered > shrinker, which make memAvailable more presiced. > > Signed-off-by: Zhaoyang Huang <zhaoyang.huang@xxxxxxxxxx> Acked-by: Todd Kjos <tkjos@xxxxxxxxxx> > --- > drivers/staging/android/ashmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/android/ashmem.c b/drivers/staging/android/ashmem.c > index 74d497d..b79301f 100644 > --- a/drivers/staging/android/ashmem.c > +++ b/drivers/staging/android/ashmem.c > @@ -893,7 +893,7 @@ static int __init ashmem_init(void) > > ashmem_range_cachep = kmem_cache_create("ashmem_range_cache", > sizeof(struct ashmem_range), > - 0, 0, NULL); > + 0, SLAB_RECLAIM_ACCOUNT, NULL); > if (!ashmem_range_cachep) { > pr_err("failed to create slab cache\n"); > goto out_free1; > -- > 1.9.1 > _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel