Re: [RFC] ashmem: Fix ashmem shrinker nr_to_scan

2020-03-10 Thread Dan Carpenter
On Thu, Mar 05, 2020 at 08:19:30PM -0500, Joel Fernandes (Google) wrote: > nr_to_scan is the number of pages to be freed however ashmem doesn't > discount nr_to_scan correctly as it frees ranges. It should be > discounting them by pages than by ranges. Correct the issue. > > Cc: sur...@google.com

[RFC] ashmem: Fix ashmem shrinker nr_to_scan

2020-03-05 Thread Joel Fernandes (Google)
nr_to_scan is the number of pages to be freed however ashmem doesn't discount nr_to_scan correctly as it frees ranges. It should be discounting them by pages than by ranges. Correct the issue. Cc: sur...@google.com Signed-off-by: Joel Fernandes (Google) --- drivers/staging/android/ashmem.c | 4 +