]> git.baikalelectronics.ru Git - kernel.git/commit
slub: fix kmem_cache_shrink return value
authorVladimir Davydov <vdavydov@parallels.com>
Thu, 12 Feb 2015 22:59:44 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Feb 2015 02:54:10 +0000 (18:54 -0800)
commitf3306f7c758909c4d9c62f9f3454516b5cb6cab7
treeea28f9bef6a3eccd26a696a6c1254c358a01b2a9
parentc30c97ae6ee2df11372f45ee84d61624595977cd
slub: fix kmem_cache_shrink return value

It is supposed to return 0 if the cache has no remaining objects and 1
otherwise, while currently it always returns 0.  Fix it.

Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Acked-by: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c