lkml.org 
[lkml]   [2009]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/4] staging: android: lowmemorykiller: remove a predefine
    Date
    I moved the struct shrinker down so that the predefine isn't needed.

    Signed-off-by: Daniel Walker <dwalker@fifo99.com>
    ---
    drivers/staging/android/lowmemorykiller.c | 11 +++++------
    1 files changed, 5 insertions(+), 6 deletions(-)

    diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c
    index f934393..fb066a3 100644
    --- a/drivers/staging/android/lowmemorykiller.c
    +++ b/drivers/staging/android/lowmemorykiller.c
    @@ -19,12 +19,6 @@
    #include <linux/oom.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 int lowmem_adj[6] = {
    0,
    @@ -140,6 +134,11 @@ static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask)
    return rem;
    }

    +static struct shrinker lowmem_shrinker = {
    + .shrink = lowmem_shrink,
    + .seeks = DEFAULT_SEEKS * 16
    +};
    +
    static int __init lowmem_init(void)
    {
    register_shrinker(&lowmem_shrinker);
    --
    1.5.4.3


    \
     
     \ /
      Last update: 2009-07-05 18:35    [W:0.020 / U:0.024 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site