Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376753
b: refs/heads/master
c: 76554b8
h: refs/heads/master
i:
  376751: 74a18ba
v: v3
  • Loading branch information
Bob Liu authored and Greg Kroah-Hartman committed May 30, 2013
1 parent 593f212 commit 32b0580
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 308853139fcd440e4ca28d844678c7e69fb40826
refs/heads/master: 76554b87c85c0ac5ba56797dda670bad6677f9f1
4 changes: 0 additions & 4 deletions trunk/drivers/staging/zcache/ramster.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
#ifndef _ZCACHE_RAMSTER_H_
#define _ZCACHE_RAMSTER_H_

#ifdef CONFIG_RAMSTER_MODULE
#define CONFIG_RAMSTER
#endif

#ifdef CONFIG_RAMSTER
#include "ramster/ramster.h"
#else
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/staging/zcache/ramster/debug.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include <linux/atomic.h>
#include "debug.h"

ssize_t ramster_foreign_eph_pages;
ssize_t ramster_foreign_pers_pages;
#ifdef CONFIG_DEBUG_FS
#include <linux/debugfs.h>

Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/staging/zcache/ramster/ramster.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ static int ramster_remote_target_nodenum __read_mostly = -1;

/* Used by this code. */
long ramster_flnodes;
ssize_t ramster_foreign_eph_pages;
ssize_t ramster_foreign_pers_pages;
/* FIXME frontswap selfshrinking knobs in debugfs? */

static LIST_HEAD(ramster_rem_op_list);
Expand Down Expand Up @@ -399,14 +397,18 @@ void ramster_count_foreign_pages(bool eph, int count)
inc_ramster_foreign_eph_pages();
} else {
dec_ramster_foreign_eph_pages();
#ifdef CONFIG_RAMSTER_DEBUG
WARN_ON_ONCE(ramster_foreign_eph_pages < 0);
#endif
}
} else {
if (count > 0) {
inc_ramster_foreign_pers_pages();
} else {
dec_ramster_foreign_pers_pages();
#ifdef CONFIG_RAMSTER_DEBUG
WARN_ON_ONCE(ramster_foreign_pers_pages < 0);
#endif
}
}
}
Expand Down

0 comments on commit 32b0580

Please sign in to comment.