Files
android_kernel_xiaomi_sm8450/include/linux
Kirill Tkhai 9b996468cf mm: add SHRINK_EMPTY shrinker methods return value
We need to distinguish the situations when shrinker has very small
amount of objects (see vfs_pressure_ratio() called from
super_cache_count()), and when it has no objects at all.  Currently, in
the both of these cases, shrinker::count_objects() returns 0.

The patch introduces new SHRINK_EMPTY return value, which will be used
for "no objects at all" case.  It's is a refactoring mostly, as
SHRINK_EMPTY is replaced by 0 by all callers of do_shrink_slab() in this
patch, and all the magic will happen in further.

Link: http://lkml.kernel.org/r/153063069574.1818.11037751256699341813.stgit@localhost.localdomain
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Vladimir Davydov <vdavydov.dev@gmail.com>
Tested-by: Shakeel Butt <shakeelb@google.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Josef Bacik <jbacik@fb.com>
Cc: Li RongQing <lirongqing@baidu.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Matthias Kaehlcke <mka@chromium.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Philippe Ombredanne <pombredanne@nexb.com>
Cc: Roman Gushchin <guro@fb.com>
Cc: Sahitya Tummala <stummala@codeaurora.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Waiman Long <longman@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-08-17 16:20:31 -07:00
..
2018-06-18 21:32:15 +02:00
2018-05-25 18:23:56 +02:00
2018-08-09 14:05:30 -07:00
2016-07-08 16:23:11 +02:00
2010-11-23 20:14:46 +00:00
2018-05-26 09:16:44 +02:00
2012-10-08 13:50:20 +10:30
2018-06-15 18:10:01 -03:00
2018-04-20 17:18:35 -07:00
2018-04-30 13:25:14 +01:00
2018-07-24 14:43:26 -06:00
2018-05-09 17:25:13 +02:00
2018-06-15 18:10:01 -03:00
2018-06-19 10:06:29 -07:00
2018-06-19 10:06:29 -07:00
2011-10-29 21:20:22 +02:00
2018-03-26 15:09:38 +02:00
2012-02-20 19:46:36 +11:00
2016-10-28 08:48:16 -06:00
2018-07-22 14:13:43 +02:00
2018-06-01 07:38:16 -06:00
2018-01-01 12:40:27 -07:00
2018-03-26 15:56:44 +02:00
2017-08-07 17:22:14 +02:00
2014-12-31 13:06:50 -05:00
2018-07-12 10:04:29 -04:00
2014-10-09 11:35:48 +03:00
2014-10-08 16:01:41 -04:00
2018-07-03 18:33:19 -04:00
2017-03-21 10:15:47 +02:00
2010-02-09 11:13:56 +01:00
2018-06-07 17:34:37 -07:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2018-03-26 08:53:43 -06:00
2018-01-17 11:30:16 +00:00
2006-10-10 15:37:22 -07:00
2018-06-22 13:43:27 +09:00
2018-06-22 13:43:27 +09:00
2018-05-09 12:21:46 -05:00
2016-05-11 22:37:54 +02:00
2014-03-13 12:11:00 +10:30
2018-06-21 17:39:18 +02:00
2018-04-11 10:28:38 -07:00
2018-06-21 12:33:21 +02:00
2018-07-12 21:35:28 +02:00
2017-12-01 13:09:40 -08:00
2018-04-12 09:41:19 -07:00
2017-08-28 20:51:22 +02:00
2018-06-05 08:50:16 -04:00
2018-06-07 17:34:35 -07:00
2018-04-11 10:28:32 -07:00
2015-06-24 17:49:41 -07:00
2018-06-07 17:34:39 -07:00
2018-03-26 13:14:43 -04:00
2018-03-26 13:14:43 -04:00
2016-04-25 15:09:11 -04:00
2017-11-17 16:10:00 -08:00
2018-01-28 22:17:24 -05:00
2018-01-08 08:22:45 -06:00
2018-01-17 15:25:50 +01:00
2018-01-08 08:22:45 -06:00
2018-06-07 17:34:36 -07:00
2018-04-11 10:28:39 -07:00
2018-01-31 17:18:37 -08:00
2017-11-09 10:23:28 +01:00
2018-08-15 14:59:03 -05:00
2018-07-19 11:34:23 +01:00
2018-06-07 17:34:35 -07:00
2018-07-25 13:41:22 -07:00
2017-11-17 16:10:04 -08:00
2017-11-17 16:10:04 -08:00
2017-11-13 01:33:48 +01:00
2017-12-16 02:05:48 +01:00
2010-08-04 21:53:17 -07:00
2018-05-31 00:13:56 +08:00
2018-07-20 01:11:45 +02:00
2018-08-02 17:33:06 -04:00
2018-05-11 17:28:45 -07:00
2018-05-11 17:28:45 -07:00
2018-03-01 08:33:05 -07:00
2017-11-07 12:22:21 +01:00
2018-06-29 08:48:06 -06:00
2018-04-30 05:14:55 -07:00
2009-04-08 14:33:38 -07:00
2018-06-07 17:34:35 -07:00
2018-07-03 09:20:44 +02:00
2018-05-03 15:55:23 -07:00
2013-04-30 15:50:12 +05:30
2018-06-20 11:35:56 +02:00
2018-02-06 18:32:47 -08:00
2018-05-19 13:57:31 +02:00
2015-10-01 09:57:59 -07:00
2005-04-16 15:20:36 -07:00
2018-02-06 18:32:44 -08:00
2014-11-28 16:08:16 +01:00
2017-12-20 09:53:54 -07:00
2015-12-03 07:24:29 -08:00
2018-05-14 09:51:34 -04:00
2017-08-15 09:02:07 -07:00
2011-01-13 08:03:24 -08:00
2013-10-17 15:53:09 -04:00
2017-08-15 09:02:08 -07:00