Staging: android: lowmemorykiller: remove a predefine
I moved the struct shrinker down so that the predefine isn't needed. Signed-off-by: Daniel Walker <dwalker@fifo99.com> Cc: Arve Hjønnevåg <arve@android.com> Cc: Brian Swetland <swetland@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
707636ff4b
commit
edd540ea92
|
@ -19,12 +19,6 @@
|
||||||
#include <linux/oom.h>
|
#include <linux/oom.h>
|
||||||
#include <linux/sched.h>
|
#include <linux/sched.h>
|
||||||
|
|
||||||
static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask);
|
|
||||||
|
|
||||||
static struct shrinker lowmem_shrinker = {
|
|
||||||
.shrink = lowmem_shrink,
|
|
||||||
.seeks = DEFAULT_SEEKS * 16
|
|
||||||
};
|
|
||||||
static uint32_t lowmem_debug_level = 2;
|
static uint32_t lowmem_debug_level = 2;
|
||||||
static int lowmem_adj[6] = {
|
static int lowmem_adj[6] = {
|
||||||
0,
|
0,
|
||||||
|
@ -140,6 +134,11 @@ static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask)
|
||||||
return rem;
|
return rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static struct shrinker lowmem_shrinker = {
|
||||||
|
.shrink = lowmem_shrink,
|
||||||
|
.seeks = DEFAULT_SEEKS * 16
|
||||||
|
};
|
||||||
|
|
||||||
static int __init lowmem_init(void)
|
static int __init lowmem_init(void)
|
||||||
{
|
{
|
||||||
register_shrinker(&lowmem_shrinker);
|
register_shrinker(&lowmem_shrinker);
|
||||||
|
|
Loading…
Reference in New Issue