#include <linux/module.h>
#include <linux/cpu.h>
#include <linux/highmem.h>
#include <linux/list.h>
#include <linux/lzo.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/types.h>
#include <linux/atomic.h>
#include <linux/frontswap.h>
#include "../tmem.h"
#include "../zcache.h"
#include "../zbud.h"
#include "ramster.h"
#include "ramster_nodemanager.h"
#include "tcp.h"
Go to the source code of this file.
|
int | ramster_do_preload_flnode (struct tmem_pool *pool) |
|
int | ramster_localify (int pool_id, struct tmem_oid *oidp, uint32_t index, char *data, unsigned int size, void *extra) |
|
void | ramster_pampd_new_obj (struct tmem_obj *obj) |
|
void | ramster_pampd_free_obj (struct tmem_pool *pool, struct tmem_obj *obj, bool pool_destroy) |
|
void * | ramster_pampd_repatriate_preload (void *pampd, struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, bool *intransit) |
|
int | ramster_pampd_repatriate (void *fake_pampd, void *real_pampd, struct tmem_pool *pool, struct tmem_oid *oid, uint32_t index, bool free, void *extra) |
|
bool | ramster_pampd_is_remote (void *pampd) |
|
int | ramster_pampd_replace_in_obj (void *new_pampd, struct tmem_obj *obj) |
|
void * | ramster_pampd_free (void *pampd, struct tmem_pool *pool, struct tmem_oid *oid, uint32_t index, bool acct) |
|
void | ramster_count_foreign_pages (bool eph, int count) |
|
int | ramster_remotify_pageframe (bool eph) |
|
void __init | ramster_remotify_init (void) |
|
| RAMSTER_SYSFS_RO (interface_revision) |
|
| RAMSTER_SYSFS_RO_ATOMIC (remote_pers_pages) |
|
| RAMSTER_SYSFS_RW (pers_remotify_enable) |
|
| RAMSTER_SYSFS_RW (eph_remotify_enable) |
|
| __setup ("noselfshrink", ramster_nofrontswap_selfshrink_setup) |
|
void | ramster_cpu_up (int cpu) |
|
void | ramster_cpu_down (int cpu) |
|
void | ramster_register_pamops (struct tmem_pamops *pamops) |
|
void __init | ramster_init (bool cleancache, bool frontswap, bool frontswap_exclusive_gets) |
|
#define FLUSH_ENTIRE_OBJECT ((uint32_t)-1) |
#define RAMSTER_SYSFS_RO |
( |
|
_name | ) |
|
Value:
{ \
} \
.show = ramster_##_name##_show, \
}
Definition at line 775 of file ramster.c.
#define RAMSTER_SYSFS_RO_ATOMIC |
( |
|
_name | ) |
|
Value:
{ \
} \
.show = ramster_##_name##_show, \
}
Definition at line 809 of file ramster.c.
#define RAMSTER_SYSFS_RW |
( |
|
_name | ) |
|
Value:
{ \
} \
{ \
err = kstrtoul(
buf, 10, &enable); \
if (err) \
} \
.show = ramster_##_name##_show, \
.store = ramster_##_name##_store, \
}
Definition at line 786 of file ramster.c.
__setup |
( |
"noselfshrink" |
, |
|
|
ramster_nofrontswap_selfshrink_setup |
|
|
) |
| |
void ramster_count_foreign_pages |
( |
bool |
eph, |
|
|
int |
count |
|
) |
| |
bool ramster_pampd_is_remote |
( |
void * |
pampd | ) |
|
int ramster_remotify_pageframe |
( |
bool |
eph | ) |
|
RAMSTER_SYSFS_RO |
( |
interface_revision |
| ) |
|
RAMSTER_SYSFS_RO_ATOMIC |
( |
remote_pers_pages |
| ) |
|
RAMSTER_SYSFS_RW |
( |
pers_remotify_enable |
| ) |
|
RAMSTER_SYSFS_RW |
( |
eph_remotify_enable |
| ) |
|